学习笔记 : 详解JDK 12中的新特性
简介
JDK 12 is the open-source reference implementation of version 12 of the Java SE Platform as specified by by JSR 386
in the Java Community Process. JDK 12 reached General Availability on 19 March 2019. Production-ready binaries under the GPL are available from Oracle; binaries from other vendors will follow shortly. The features and schedule of this release were proposed and tracked via the JEP Process, as amended by the JEP 2.0 proposal
. The release was produced using the JDK Release Process (JEP 3)
.
新特性
- 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
- 230: Microbenchmark Suite
- 325: Switch Expressions (Preview)
- 334: JVM Constants API
- 340: One AArch64 Port, Not Two
- 341: Default CDS Archives
- 344: Abortable Mixed Collections for G1
- 346: Promptly Return Unused Committed Memory from G1
时间表
- 2018/12/13 Rampdown Phase One (fork from main line)
- 2019/01/17 Rampdown Phase Two
- 2019/02/07 Release-Candidate Phase
- 2019/03/19 General Availability
Switch Expressions 特性演示
1 | int score = new Random(100).nextInt(); |
👍For more information, please refer to http://openjdk.java.net/projects/jdk/12/ and the document : https://docs.oracle.com/en/java/javase/12/
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment