Up
Down
Comment
collect
Report
share

Java 21 发布新增虚拟线程AI 接口最新 LTS 版本支持 8 年
IT之家 9 月 20 日消息,昨日晚间,Oracle 公司宣布推出 Java 21 的正式版本,以及相应的 JDK 21 开发工具包,该版本是继 JDK 17 之后最新的长期支持(LTS)版本,将获得至少 8 年的支持。

该公司还宣布,对五年前发布的 Java 11 的长期支持已延长至 2032 年 1 月。
Java 21 号称具有数千项性能、稳定性和安全性改进。新的 JDK 21 包括对 15 项改进的抢先体验,这些增强功能是在 Oracle CloudWorld 2023 会议上宣布的,包括支持虚拟线程以提高整体吞吐量,以及增加对矢量应用编程接口(API)的支持,从而更轻松地构建涉及人工智能 AI 模型的 Java 应用。
Java 21 还引入了新的 Generational ZGC 垃圾回收机制,并将弃用准备删除的 32 位 x86 接口。
此外发现,为了降低 Java 的学习门槛,方便教育工作者逐步引入编程概念,Java 21 还支持了未声明的类、变量、实例主方法等,这样相当于放弃了部分强类型设计。
Oracle Java 平台高级副总裁兼 OpenJDK 主席 Georges Saab 表示:“Java 仍然是开发健壮、可扩展且安全的应用首选语言和平台,供世界各地的组织和数百万人使用。Java 21 中的新增强功能使开发者能够比以前更快地构建更好的应用。此外,商业支持将提供至少八年,使客户能够按照自己的节奏进行迁移。”
DeclarationAll articles on this site, unless otherwise indicated or marked, are original publications of this site. Any individual or organization is prohibited from copying, stealing, collecting, or publishing the content of this site to any website, book, or other media platform without the consent of the author. If the content of this site infringes upon the legitimate rights and interests of the original author, please contact us for processing: DMCA Report













This uploader feels lonely