Sailing modern Java
summary
Covers concrete upgrade decisions: switch to Shenandoah or ZGC to cut GC pauses from hundreds of ms (CMS ~300ms, G1 ~100ms) down to ~1ms or less at the cost of more CPU; illegal reflective access becomes denied (illegal-access flags removed in JDK 17) so either refactor code or use --add-opens carefully; Java 16 adds pattern matching for instanceof (smart casting), sealed classes land in Java 17, and helpful NPE messages (since Java 14/15) improve debugging.
AI-written summary · about
chapters (24)
- 0:00Introduction and speaker intro
- 1:56Java adoption and versions
- 3:01LTS vs non-LTS releases
- 5:08Coolest Java features overview
- 6:34ZGC and Shenandoah GC explained
- 7:58Using Shenandoah GC in practice
- 9:23ZGC and garbage collector benchmarks
- 14:36Encapsulating internals by default
- 15:59Illegal access warnings and solutions
- 21:31Refactoring illegal access code
- 23:17Pattern matching with instanceof
- 26:29Preview features in Java
- 27:33Pattern matching for switch
- 29:20Sealed classes introduction
- 31:07Sealed classes in depth
- 35:23Sealed classes code demo
- 36:28Visibility vs accessibility vs extensibility
- 37:52Removed Java features
- 38:37Helpful null pointer exceptions
- 41:47Null pointer exception improvements
- 45:19Deprecated APIs and security manager
- 47:02Project Loom and future Java
- 47:47Project Valhalla warnings
- 50:18Synchronization warnings and summary
