A Few New Cool Features in Modern Java
summary
Covers Java 12–16 concrete features with live code: smart casting (pattern matching for instanceof) that gives a typed temporary variable and scope rules; switch expressions with yield that return values, remove break, and support grouped and multiline cases; text blocks that produce compile-time LDC strings (no runtime overhead) and smart indentation for embedding SQL/HTML/JSON; records as immutable data classes auto-generating ctor/getters/toString/equals/hashCode; and sealed classes with permits to control hierarchies and enable exhaustive checks.
AI-written summary · about
chapters (8)
- 0:00Introduction to modern Java
- 1:06Smart casting in Java
- 8:55Switch expressions explained
- 20:34Java's innovation approach
- 24:43Text blocks in Java
- 35:42Records in Java
- 48:25Sealed classes overview
- 54:46Closing and Q&A
related talks
01h 02mThe Amazing Features of Modern Java
32mGetting the Most from Modern Java
56mPreparing for the Java Cert and Learning New Features (Part 2)
24mWhat's New in Java - a Language Perspective!
02h 41mCruising Along with Java: Benefiting from the Modern Features
39mJava 16 Language Features
01h 11mModern Java: This is not your father's Java anymore
50mTo Java 20 and Beyond
