Variables, Types and Operators
How Java stores values: variables, the eight primitive types, overflow, decimals, casting, every operator, Strings, var, formatted output, input and constants.
Every program, from a calculator to a bank, does the same few things: it keeps values in variables, works on them with operators, and shows results. This phase teaches those building blocks properly, the way the Java compiler and the JVM actually see them.
You'll learn what a byte, an int and a double really are in memory, why Integer.MAX_VALUE + 1 turns negative, why 0.1 + 0.2 prints 0.30000000000000004, when Java converts types for you and when it refuses, and how &&, >>> and % behave in the corner cases interviewers love.
By the end you'll be able to read any line of everyday Java arithmetic and predict its exact output, print neat formatted reports, read input with Scanner, and choose the right type for money, counters, flags and text. Phase 2 then uses these pieces to make decisions and loops.