Java Language Futures
summary
Summary of concrete changes and roadmap: Java now ships concrete features—records (auto constructors, accessors, equals/hashCode/toString), sealed classes (permits + exhaustive checks), pattern matching with record patterns and enhanced switch (jdk 21), and jdk 23 previews including a simpler source-file main and module-wide imports. New proposals add with expressions for efficient record updates and flexible constructor bodies (JEP 482) to run pre-super checks; prototypes exist and earlier features are working in recent JDKs, with class/pattern-for-primitive/array extensions in the pipeline.
AI-written summary · about
chapters (15)
- 0:00Introduction to Java futures
- 1:03Project Amber overview
- 3:53Java records explained
- 9:15Sealed classes and interfaces
- 11:21Pattern matching basics
- 16:35Record patterns and nesting
- 20:28Data-oriented programming
- 27:38Async return value redesign
- 29:04Simplified hello world
- 33:43Record with expressions
- 38:26Flexible constructor bodies
- 41:39Constructor initialization order
- 46:13Constructor pre-initialization issue
- 48:24Future Amber features
- 51:45Q&A and closing
related talks
36mJava Language Futures - Mid 2020 Edition
54mJava Language Futures: Late 2019 Edition
52mJava 22 and Beyond: A Roadmap of Innovations
01h 11mModern Java: This is not your father's Java anymore
51m#JavaNext Language Features
24mWhat's New in Java - a Language Perspective!
46mWhere is the Java language going?
43mJava Language Futures, Spring 2023 Edition
