Pebellslearn by building
RoadmapsMatrixCoursesSandboxSign in

Course details

Java

Learn modern Java from the first compiled file to classes, interfaces, exceptions and collections. Every idea is taught on one small café ordering program, so each lesson builds on the last.

Ready to learn6 sections · 24 lessons
Start learning

Course curriculum

Java Basics5 lessons

Follow a file from source to the JVM, learn the shape of every Java program, and choose types, variables, operators and casts that behave exactly as you expect.

  1. From Source File to Running Program12 min
  2. Basic Syntax: Classes, main and Statements12 min
  3. Data Types: Choosing the Right Box12 min
  4. Variables and Scope12 min
  5. Math Operations and Type Casting14 min
Control Flow, Arrays and Strings4 lessons

Choose between paths with if and switch, repeat with for and while, store rows of values in arrays, and work with text using String methods.

  1. Conditionals: if, else and switch13 min
  2. Loops: for, while and do-while13 min
  3. Arrays: A Fixed Row of Boxes13 min
  4. Strings and Their Methods14 min
Classes and Objects4 lessons

Build Brew Bar's Drink and Order classes with fields, constructors and methods, protect them with access specifiers, and share class-wide values with static and final.

  1. Classes and Objects14 min
  2. Attributes and Methods13 min
  3. Access Specifiers and Encapsulation14 min
  4. The static and final Keywords14 min
Object-Oriented Principles5 lessons

Extend classes, override and overload methods, program against abstract types and interfaces, model fixed choices and plain data with enums and records, and see exactly what a method receives.

  1. Inheritance14 min
  2. Overloading, Overriding and Binding15 min
  3. Abstraction and Interfaces15 min
  4. Enums and Records15 min
  5. Pass by Value: What a Method Really Receives14 min
Exception Handling3 lessons

Catch and recover from run-time problems, tell checked from unchecked exceptions, throw your own well-named exceptions, and close resources automatically.

  1. try, catch and finally14 min
  2. Checked and Unchecked Exceptions14 min
  3. Throwing Exceptions and Cleaning Up15 min
Collections3 lessons

Grow and shrink lists with ArrayList, keep unique values in a Set, look things up in a Map, and serve items in order with queues and stacks.

  1. Array vs ArrayList14 min
  2. Set and Map15 min
  3. Queue, Deque and Stack14 min