Java 22 - Better Language, Better APIs, Better Runtime
summary
Java 22 finalizes the unnamed patterns (JEP 456) so switch branches can combine cases using the underscore instead of a default, forcing compile-time exhaustiveness; it ships the foreign‑function & memory API (Arena, MemorySegment, VarHandle, Jextract + MethodHandle-based calls) as final so native calls and off-heap buffers are safer and controllable; and it enables multi‑source‑file launch and a smaller main so multiple .java files run with java (no javac). String templates get pulled back for redesign.
AI-written summary · about
chapters (8)
- 0:00Introduction and Java 22 overview
- 2:54Why upgrade to newer Java versions
- 8:08Unnamed patterns in Java 22
- 16:39Foreign Function & Memory API
- 26:14Multi-file program launching
- 35:21Q&A session
- 41:34Stream gatherers deep dive
- 48:54Closing and resources
related talks
02h 31mJava 23 - Better Language, Better APIs, Better Runtime
51mJava 24 - Better Language, Better APIs, Better Runtime
52mJava 22 and Beyond: A Roadmap of Innovations
56mTo Java 22 and Beyond!
45mWhat's New in Java 21
52mTo Java 21 and Beyond!
59mEffective Java SE 18 APIs/Lang features, makes your life easier.
50mJava 26: Better Language, Better APIs, Better Runtime
