Java, one release at a time
A Hike from Java 7
The Trail to Java 27
Kshittiz Kumar
Twenty releases separate Java 7 from Java 27. This book walks the whole trail: each concept starts where many developers first learned it, follows every release that changed it, and ends with how you'd write it today.
Start reading Contents Quick Reference Download PDF
The PDF is laid out for iPad: open it, then tap Share → GoodNotes or Notability to write in it.
Turn to a chapter
Scroll or swipe to turn the wheel · tap the highlighted chapter to open it
Who this book is for
- Developers who learned Java 7 or 8 and now work in code bases full of
var, records, arrow-styleswitchand virtual threads. - Students learning Java today who want the reasons behind the rules, not just the rules.
- Developers coming from another language who want a guided tour of how Java got to where it is.
What's inside
| Part | Chapters |
|---|---|
| I. Foundations | How Java runs, types and conversions, operators and control flow |
| II. Objects | Classes and references, constructors and static, methods and polymorphism, inheritance, interfaces |
| III. Organizing Code | Packages, access and modules; nested classes and lambdas |
| IV. Data and Memory | Arrays and collections; garbage collection |
| V. Errors and Text | Exceptions, strings, wrapper classes |
| VI. Modern Java | Streams, java.time, concurrency and virtual threads, records and pattern matching, the modern toolchain |
| Appendices | Java 7 → 27 at a glance; a migration checklist |
How to read it
Every chapter opens with its Key points. Read those alone for a fast overview, or the whole set on one page in the Quick Reference. Each chapter then explains how the concept worked in Java 7, why that hurt, which releases changed it, and how to write it today, closing with a timeline and a summary.
Every example is a complete program you can run, and every output shown in the book comes from running it. The complete edition on GitHub adds deeper sections, exercises and interview questions, with each example ready to run.
© 2026 Kshittiz Kumar. Free to read online. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates. This book is an independent work and is not affiliated with, sponsored by, or endorsed by Oracle. See Copyright.