出品|开源中国
Java 21 / JDK 21 已正式 GA,此版本是继 JDK 17 后的长期支持版本 (LTS),Oracle 将为其提供至少八年的技术支持和更新。
正式稳定功能
JEP 444:虚拟线程
JEP 431:序列集合
JEP 440:记录模式
JEP 441:switch 模式匹配
JEP 439:分代 ZGC
JEP 449:弃用 Windows 32 位 x86 移植
JEP 451:准备禁止动态加载代理
JEP 452:密钥封装机制 API
预览阶段功能
JEP 442:外部函数和内存 API(第三次预览)
JEP 446:作用域值(预览)
JEP 453:结构化并发(预览)
JEP 430:字符串模板(预览)
JEP 443:未命名模式和变量(预览)
JEP 445:未命名类和实例主方法(预览)
孵化阶段功能
JEP 448:Vector API(孵化器第六阶段)
430:String Templates (Preview)431:Sequenced Collections439:Generational ZGC440:Record Patterns441:Pattern Matching for switch442:Foreign Function & Memory API (Third Preview)443:Unnamed Patterns and Variables (Preview)444:Virtual Threads445:Unnamed Classes and Instance Main Methods (Preview)446:Scoped Values (Preview)448:Vector API (Sixth Incubator)449:Deprecate the Windows 32-bit x86 Port for Removal451:Prepare to Disallow the Dynamic Loading of Agents452:Key Encapsulation Mechanism API453:Structured Concurrency (Preview)
Download: https://jdk.java.net/21/
Release notes: https://jdk.java.net/21/release-notes
Features: https://openjdk.org/projects/jdk/21/
领取专属 10元无门槛券
私享最新 技术干货