What's new in Java 19 and 20
summary
Covers concrete Java 19 and 20 changes: record patterns and enhanced pattern matching in switch progress as previews with nested and generic support; the Panama foreign-memory and foreign-linker APIs move from incubator to preview and change package/module locations; the Vector API stays in incubation for SIMD. Also describes virtual threads, structured concurrency and scoped values advancing via two previews with notes on synchronization and native-call failure modes, a RISC‑V Linux port, DTLS disabled in Java 20, removal of javac -source 7 support, and new compiler warnings for compound assignments.
AI-written summary · about
chapters (9)
- 0:00Start
- 3:23Record Patterns (Preview)
- 8:00Pattern Matching for switch (Preview)
- 12:12Foreign Function & Memory API (Preview)
- 21:21Virtual Threads (Preview)
- 28:13Structured Concurrency (Incubator)
- 39:21Additional Date/Time Formatting
- 43:34Performance Improvements
- 43:56Conclusion








