from first concept to confident practice
Java
Build strong programming foundations with a language made for big ideas.
About this track
Learn Java from the first class and main method through variables, control flow, arrays, methods, objects, collections, and exception-safe input handling. Every lesson pairs clear explanations with a quiz and a Java program you can compile and run against sample inputs, including practical mini-labs.
- No prior programming experience needed.
- A modern browser with JavaScript enabled.
- A network connection is needed to compile and run exercises with Compiler Explorer.
Your path
0 of 9 lessons · 0%Restoring your progress…
- Unit 1 · 0/3 lessons
Getting started
Run a class and use Java’s basic values and expressions. Badge: First class
- 0x001Run your first Java programMeet the main method and print a message from a Java class. 14 min 0/1 exercises solved 14 min 0/1 exercises solved
- 0x102Name values and choose typesStore numbers, text, and true/false values in variables. 14 min 0/1 exercises solved 14 min 0/1 exercises solved
- 0x203Calculate with expressions and stringsUse arithmetic operators and combine values to build output. 14 min 0/1 exercises solved 14 min 0/1 exercises solved
- Unit 2 · 0/2 lessons
Decisions and repetition
Choose a path, loop over work, and process arrays. Badge: Flow controller
- 0x304Choose a path with conditionsCompare values and use if, else if, and else to make decisions. 14 min 0/1 exercises solved 14 min 0/1 exercises solved
- 0x405Repeat work with loops and arraysVisit each array item and accumulate a result with a loop. 14 min 0/1 exercises solved 14 min 0/1 exercises solved
- Unit 3 · 0/2 lessons
Methods and objects
Organize reusable behavior and data into classes and collections. Badge: Object builder
- 0x506Organize behavior with methods and objectsDefine a reusable method and model data with a simple class. 14 min 0/1 exercises solved 14 min 0/1 exercises solved
- 0x607Use ArrayList and HashMap in practiceStore variable-size data and aggregate values by key. 14 min 0/1 exercises solved 14 min 0/1 exercises solved
- Unit 4 · 0/2 lessons
Practical Java workflows
Validate messy input and build deterministic summaries. Badge: Automation operator
- 0x708Handle exceptions and validate inputUse try/catch to keep programs reliable with imperfect input. 14 min 0/1 exercises solved 14 min 0/1 exercises solved
- 0x809Practical lab: order summary reportCombine collections, loops, and validation in a realistic mini-project. 14 min 0/1 exercises solved 14 min 0/1 exercises solved