Java 16 Language Features
summary
Covers Java 16 previews with live IDE demos using IntelliJ IDEA 2020.1 and JDK 16: shows sealed classes with permits clauses and the three modifiers (sealed, non‑sealed, final), explains how sealing enables declared hierarchies and hints at future exhaustiveness with pattern matching; demonstrates pattern matching for instanceof to eliminate manual casts and narrow variable scope; shows records replace explicit constructor/getters/toString/hashCode/equals with one-line declarations and proves records resist reflection changes (throws IllegalAccessException), plus generic and local record examples.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:18Java Release Cadence
- 3:14Java 16 Release Notes
- 4:11cltypes
- 5:06IntelliJ IDEA
- 6:00Hierarchy of Classes
- 9:37NonSealed Classes
- 13:09C Classes
- 16:35Pattern Matching
- 22:13Records
- 23:14Demo
- 31:09immutable records
related talks
40mSailing Java 16
32mJava 16 Is Coming!
24mWhat's New in Java - a Language Perspective!
52mJava Language Futures
48mUncovering Project Amber: Changes to the Java Language in v10 & Beyond
36mJava Language Futures - Mid 2020 Edition
55mA Few New Cool Features in Modern Java
01h 11mModern Java: This is not your father's Java anymore
