the basics
variables, types, control flow, methods, and the stack/heap mental model everything else sits on.
- 01variables and primitiveseight primitive types, how many bits each one gets, and what that means.
- 02operatorsprecedence, short-circuiting, and the ++i vs i++ thing.
- 03casting and overflowwidening, narrowing, and why Integer.MAX_VALUE + 1 is negative.
- 04floating pointwhy 0.1 + 0.2 != 0.3, IEEE 754 bit by bit, and when to reach for BigDecimal.
- 05strings, the basicsstring literals, immutability, concatenation and text blocks.
- 06control flowif, loops, break, continue, and labeled breaks (yes, java has those).
- 07switchthe old fallthrough switch vs the new arrow switch expression.
- 08arraysfixed-size boxes in a row. 2d arrays are arrays of arrays (literally).
- 09methodsparameters, return values, overloading and varargs.
- 10the call stack and recursionevery call pushes a frame. watch them stack up and unwind.
- 11stack and heapwhere your variables live vs where your objects live. the most important picture in java.
- 12java is pass-by-valuealways. even for objects. here's the proof, step by step.
- 13varlocal type inference: what it infers, and where it isn't allowed.
- 14reading and printingSystem.out, printf formatting, Scanner and IO.println.