Java roadmap

Learn Java’s types, collections and objects by building a small console application.

Learning path

Follow the stages in order. Expand a stage for its goal and checkpoint, or choose a topic to open its lesson.

Start
  1. 1Learn the types and control flow

    Read a Main class, use primitive values, and follow conditions and loops.

    Checkpoint

    Write a console exercise that prints totals and handles an empty range.

  2. 2Work with collections

    Choose an array for fixed-size data and an ArrayList when the input can grow. Give transformations methods with return values.

    Checkpoint

    Write a method that finds the last entry in a list or handles an empty list.

  3. 3Model objects and test

    Model a few domain operations as instance methods, with state private where possible. Trace each object’s state separately.

    Checkpoint

    Build a lending inventory in which borrowing one item updates only that item.

  4. 4Reuse types and behavior

    Use interfaces for behaviors with multiple implementations, generics for reusable collections, and streams for readable data transformations.

    Checkpoint

    Write a report that groups records by category and formats each group through a reusable interface.

  5. 5Understand production Java behavior

    Coordinate updates to shared values, handle delayed results, and distinguish cold startup from steady-state performance.

    Checkpoint

    Explain why two updates can collide and choose a way to keep the final total correct.

Finish