Java™ 19 & 20. What's new and noteworthy?
summary
Covers concrete changes in Java 19–20 with demos: virtual threads (Project Loom) start in milliseconds and reduce memory—regular threads fail around 50,000 while virtual threads handle hundreds of thousands (demo hits ~800k before stopping); structured concurrency gives instant cancellation instead of waiting for other tasks; scope values replace many ThreadLocal uses; native work uses the foreign linker API and memory arenas with thread confinement; network latency is simulated with toxic-proxy and pinning is detected via Java Flight Recorder; tests and containers run on Testcontainers Cloud and the demos succeed.
AI-written summary · about
chapters (16)
- 0:00Introduction and speaker intro
- 5:41Java 19 and 20 release cycle
- 8:10Should you upgrade to Java 20?
- 15:54Virtual threads and Project Loom
- 32:44Virtual threads demo
- 53:36Structured concurrency
- 1:08:14Structured concurrency demo
- 1:11:48Scoped values
- 1:27:34Pattern matching for switch
- 1:45:35Record patterns
- 1:57:22Foreign Function & Memory API
- 2:03:38Foreign Memory Access API demo
- 2:18:40Foreign Linker API demo
- 2:24:21Java 20 features summary
- 2:30:09Java 21 preview features
- 2:33:20Closing and resources
related talks
01h 50mJava™ 19 & 20. What's new and noteworthy?
56mTo Java 22 and Beyond!
47mSailing Modern Java
49mPrepare for what “Loom”s ahead.
34mIntroduction and pitfalls of Java's new concurrency model
02h 43mVirtual Threads, Structured Concurrency and Scoped Values in Java 25 and Beyond
47mThe Hidden Gems of Java 20
01h 05mTo #Java 24 and Beyond
