JDK 21 GA,虚拟线程正式稳定!你还坚守Java8?

描述

 Java 21 / JDK 21 已正式 GA,此版本是继 JDK 17 后的长期支持版本 (LTS),Oracle 将为其提供至少八年的技术支持和更新JAVA(以下个功能可点击文末阅读原文跳转查看详情)正式稳定功能
  • 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 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/

 


打开APP阅读更多精彩内容
声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉

全部0条评论

快来发表一下你的评论吧 !

×
20
完善资料,
赚取积分