Loading

from first concept to confident practice

Java

Build strong programming foundations with a language made for big ideas.

Start learning 9 lessons · first lesson about 14 min · free · no account needed
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.

Before you start
  • No prior programming experience needed.
  • A modern browser with JavaScript enabled.
  • A network connection is needed to compile and run exercises with Compiler Explorer.
Loading progress…
  1. Unit 1 · 0/3 lessons

    Getting started

    Run a class and use Java’s basic values and expressions. Badge: First class

    1. 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
    2. 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
    3. 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
  2. Unit 2 · 0/2 lessons

    Decisions and repetition

    Choose a path, loop over work, and process arrays. Badge: Flow controller

    1. 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
    2. 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
  3. Unit 3 · 0/2 lessons

    Methods and objects

    Organize reusable behavior and data into classes and collections. Badge: Object builder

    1. 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
    2. 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
  4. Unit 4 · 0/2 lessons

    Practical Java workflows

    Validate messy input and build deterministic summaries. Badge: Automation operator

    1. 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
    2. 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