文章目录

heardfate

存档: 2021 年 04 月 (3)

JAVA13新特性 有更新!

Java13主要新增了如下特性

  • 350: Dynamic CDS Archives
    • 351: ZGC: Uncommit Unused Memory
    • 353: Reimplement the Legacy Socket API
    • 354: Switch Expressions (Preview)
    • 355: Text Blocks (Preview)
      语法层面,改进了Switch Expressions,新增了Text Blocks,二者皆处于Preview状态;API层面主要使用NioSocketImpl来替换JDK1.0的PlainSocketImpl
      GC层面则改进了ZGC,以支持Uncommit Unused Memory

java14新特性

在JDK14中新增了以下16个新特性:

  • 305: instanceof的模式匹配 (预览)
  • 343: 打包工具 (Incubator)
  • 345: G1的NUMA内存分配优化
  • 349: JFR事件流
  • 352: 非原子性的字节缓冲区映射
  • 358: 友好的空指针异常
  • 359: Records (预览)
  • 361: Switch表达式 (标准)
  • 362: 弃用Solaris和SPARC端口
  • 363: 移除CMS(Concurrent Mark Sweep)垃圾收集器
  • 364: macOS系统上的ZGC
  • 365: Windows系统上的ZGC
  • 366: 弃用ParallelScavenge + SerialOld GC组合
  • 367: 移除Pack200 Tools和API
  • 368: 文本块 (第二个预览版)
  • 370: 外部存储器API (Incubator)

JAVA15新特性

JDK 15 新特性一览表:

ID JEP Feature
1 339 Edwards-Curve Digital Signature Algorithm (EdDSA)
2 360 Sealed Classes (Preview)
3 371 Hidden Classes
4 372 Remove the Nashorn JavaScript Engine
5 373 Reimplement the Legacy DatagramSocket API
6 374 Disable and Deprecate Biased Locking
7 375 Pattern Matching for instanceof (Second Preview)
8 377 ZGC: A Scalable Low-Latency Garbage Collector
9 378 Text Blocks
10 379 Shenandoah: A Low-Pause-Time Garbage Collector
11 381 Remove the Solaris and SPARC Ports
12 383 Foreign-Memory Access API (Second Incubator)
13 384 Records (Second Preview)
14 385 Deprecate RMI Activation for Removal