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.
1Learn the types and control flow
Read a Main class, use primitive values, and follow conditions and loops.
CheckpointWrite a console exercise that prints totals and handles an empty range.
2Work with collections
Choose an array for fixed-size data and an ArrayList when the input can grow. Give transformations methods with return values.
CheckpointWrite a method that finds the last entry in a list or handles an empty list.
3Model objects and test
Model a few domain operations as instance methods, with state private where possible. Trace each object’s state separately.
CheckpointBuild a lending inventory in which borrowing one item updates only that item.
4Reuse types and behavior
Use interfaces for behaviors with multiple implementations, generics for reusable collections, and streams for readable data transformations.
CheckpointWrite a report that groups records by category and formats each group through a reusable interface.
5Understand production Java behavior
Coordinate updates to shared values, handle delayed results, and distinguish cold startup from steady-state performance.
CheckpointExplain why two updates can collide and choose a way to keep the final total correct.