Java: Java 12, 13 & 14. What's new and noteworthy?
summary
Covers concrete changes from Java 12–15 and whether to try them now: Shenandoah and ZGC target short stop-the-world pauses (demo shows G1 ~140 ms vs ZGC ~1 ms and Shenandoah ~700 µs in a simple run), G1 gains uncommit memory and abortable collections, switch expressions and pattern-matching for instanceof reduce casts, records reduce boilerplate by auto-generating final fields, constructors and equals/hashCode, text blocks simplify embedded JSON, JFR adds near‑real‑time event streaming and AppCDS generation gets much easier, plus helpful NPE messages enabled by default in 15.
AI-written summary · about
chapters (11)
- 0:00Introduction and setup
- 3:49Garbage collectors Shenandoah and ZGC
- 10:52Switch expressions in Java
- 16:08Text blocks for cleaner strings
- 18:36Helpful NullPointerExceptions
- 21:01Instance of pattern matching
- 23:29Records as data carriers
- 27:24Sealed classes explained
- 32:20JFR event streaming
- 33:45CDS archives improvements
- 35:33Closing and Q&A








