Why this matters
- Most codebases skip from 8 straight to 17, so the intermediate releases arrive all at once and the useful additions are easy to miss.
- The removals — not the additions — are what actually break a migration, and they are predictable.
- Helpful NullPointerException messages alone save real debugging time, and they are on by default from 15 onwards.
The release model
Java 8Lambdas, streams
Java 11var, HTTP client
Java 17Records, sealed, switch
Java 21Virtual threads, patterns
Since Java 9 there is a release every six months, with a long-term-support release every two or three years. The LTS versions are 8, 11, 17, 21 and 25; those are the ones production systems target. Non-LTS releases are useful for trying preview features, not for running services on.
The Java 9–11 API additions you will use daily
Loading compiler…
Loading compiler…
Loading compiler…
Loading compiler…
The rest of this guide is part of Pro
Free covers every fresher guide in full. Pro unlocks Senior, Staff and Architect guides across every track.
Still to come · 6 sections
- Helpful NullPointerException messages
- The module system
- What was removed
- Smaller things worth knowing
- A practical migration order
- Common misreadings
Test yourself
Answer these before moving on — recall is what makes it stick.