What's New in Java - a Language Perspective!
summary
Overview of concrete changes: Java 14–15 ship preview features that implement instanceof pattern (no explicit cast), switch expression (returns a value, arrows and yield rules, compile-time exhaustiveness), records (auto-generated private final fields, canonical constructor and accessors), and sealed types (compiler-known permitted subclasses). Eclipse Java compiler emits new classfile attributes (Record and PermittedSubclasses). Expect these previews to stabilize by Java 16 and watch for scoping and restricted-identifier pitfalls like using yield.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 1:46Java language changes
- 3:34Pattern matching in Java
- 9:12Switch expressions
- 17:07Records in Java
- 20:18Sealed interfaces
- 21:45JVM specification updates
- 23:11Resources and closing








