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 445:未命名类和实例主方法(预览)
孵化阶段功能
- JEP 448:Vector API(孵化器第六阶段)
| 430: | String Templates (Preview) |
| 431: | Sequenced Collections |
| 439: | Generational ZGC |
| 440: | Record Patterns |
| 441: | Pattern Matching for switch |
| 442: | Foreign Function & Memory API (Third Preview) |
| 443: | Unnamed Patterns and Variables (Preview) |
| 444: | Virtual Threads |
| 445: | 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 Removal |
| 451: | Prepare to Disallow the Dynamic Loading of Agents |
| 452: | Key Encapsulation Mechanism API |
| 453: | 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/





还没有评论,来说两句吧...