JDK / Java 14 released

March 17, the JDK / 14 the Java official GA .

JEP included in this release ( the Java / the JDK Enhancement Proposals, proposals to enhance the JDK ) even more than Java 12 and 13 together. A total of 16 new properties as follows:

305: Pattern Matching for instanceof (Preview
) introduction mode matching instanceof operator (preview phase)

By pattern matching, developers can use simpler and safer way to express common logic. instanceof operator support from the pattern matching conditions by object extraction assembly, this language features in preview stage.

343: Packaging Tool (Incubator)
package tool (the incubation phase)

Create a tool package for standalone Java applications.

345: Memory Allocation for NUMA-Aware G1
NUMA-Aware of memory allocation for G1

By implementing NUMA-aware memory allocation, G1 improve performance on large machines.

349: JFR Event Streaming
JFR event flow

JDK Flight Recorder exposure data for continuous monitoring.

352: Non-Volatile Mapped Byte Buffers
bit buffer mapping of nonvolatile

Mapping bytes of nonvolatile buffer add new JDK particular file mapping mode, which allows for creating a reference MappedByteBuffer FileChannel API instance nonvolatile memory (NVM) a.

358:Helpful NullPointerExceptions

Improved NullPointerExceptions, to null to increase the availability of JVM abnormality which variables generated by the accurate description. The author of the proposal hope to provide useful information about the program aborted why developers and support staff, and more clearly the dynamic and static abnormalities associated with program code to improve understanding of the process through.

359:Records (Preview)

Records provide a compact syntax to declare class to help developers write more concise code, these classes are shallow immutable data (shallowly immutable data) transparent owner. This feature is primarily used in the field of specific classes, these classes are primarily used to store data is not available field behavior.

361:Switch Expressions (Standard)

Switch Expressions are in the preview state JDK 12 and 13, it has now become stable characteristics in JDK 14. switch expression extends switch statement, it not only as a statement (Statement), may also be used as an expression (expression The), and both are written using conventional syntax switch, or using a simplified "case L ->" Mode matching syntax and act on a range of different control execution flow. These changes will simplify routine coding, and to switch the pattern matching ready.

362: Deprecate the Solaris and SPARC Ports
abandoned Solaris and SPARC port

Abandoned Solaris / SPARC, Solaris / x64 and Linux / SPARC port to be removed in a future version.

363:Remove the Concurrent Mark Sweep (CMS) Garbage Collector

Remove CMS (Concurrent Mark-Sweep) garbage collector.

364:ZGC on macOS

The garbage collector transplanted to ZGC macOS.

365:ZGC on Windows

The ZGC garbage collector ported to Windows.

366:Deprecate the ParallelScavenge + SerialOld GC Combination

Abandoned ParallelScavenge + garbage collection algorithm in combination SerialOld GC.

367: Remove the Pack200 Tools and API
removed Pack200 tools and API

Delete java.util.jar package pack200 and unpack200 tools and Pack200 API.

368:Text Blocks (Second Preview)

Characteristics of the text block (Text Blocks) and common the Python "the any INPUT" as characteristic, that supports multiple lines of text strings, may not be necessary to use most of the escape sequence, and in a predictable manner string format is automatically set, At the same time it allows developers to control the format. While this is not particularly complex characteristics, but want to develop in the HTML code introduced Java is a great convenience, but also greatly enhance code readability. The second phase is currently in preview.

370: Foreign-Memory Access API (
Incubator) External memory access API (incubation stage)

A new API allows Java programs to secure effective access to external memory outside of the Java heap.

Detail View: http://openjdk.java.net/projects/jdk/14/
can be used to download binary packages production environment: http://jdk.java.net/14/

Guess you like

Origin www.oschina.net/news/114156/jdk-14-ga