Sailing Java 16
summary
Java 16 shows concrete changes: pattern matching with instanceof removes repetitive casts and creates scoped local bindings (JEP 394), records as named tuples generate private final fields, accessors, canonical constructor, equals/hashCode/toString and can be local types (JEP 395), and sealed classes (preview) let a type list permitted heirs to restrict inheritance (JEP 397). JDK now illegal-access=deny by default (strongly encapsulate JDK internals, JEP 396) so setAccessible calls break unless code adds opens or migrates; value-based classes warn constructors for removal; demos run with a few failing live examples.
AI-written summary · about
chapters (7)
- 0:00Introduction to Java 16
- 5:45Strongly encapsulating JDK internals
- 13:17Pattern matching with instanceof
- 18:18Sealed classes introduction
- 24:14Warnings for value-based classes
- 30:31Records deep dive
- 38:43Q&A and closing remarks
related talks
39mJava 16 Language Features
32mJava 16 Is Coming!
46mThe Art of Java Type Patterns
24mWhat's New in Java - a Language Perspective!
01h 11mModern Java: This is not your father's Java anymore
01h 13mJDK 16: What's Next For Java?
03h 02mJava 16 & 17. What's new and noteworthy?
50mThe Cool Thing about Cool Things in Java 16 & 17 LTS
