JDK 14 Feature Set Frozen
Written by Kay Ewbank   
Tuesday, 25 February 2020

Java Development Kit (JDK) 14 is now at the release candidate stage and the feature set for the March 2020 release has been frozen. Highlights of the new version will include extra pattern matching, better handling of switch expressions, and an API for the JDK Flight Recorder.

The first change worth mentioning is support for pattern matching for instanceof. Pattern matching allows common logic in a program, specifically the conditional extraction of components from objects, to be expressed more concisely and safely. Instanceof is used to check whether the object reference is an instance of a specific type. 

corretto

 A packaging tool has also been added to the new release. The tool is based on the JavaFX javapackager tool, so has support for native packaging formats to give end users a natural installation experience. These formats include msi and exe on Windows, pkg and dmg on macOS, and deb and rpm on Linux.

JDK 14 should improve G1 performance on large machines because of a new NUMA-aware memory allocation. Modern multi-socket machines increasingly have non-uniform memory access (NUMA), and while the parallel collector,has been NUMA-aware for many years,  other HotSpot collectors have been NUMA-aware. This has been a particular problem for users of the G1 collector, hence the new addition.

JFR Event Streaming support has been added that exposes JDK Flight Recorder data for continuous monitoring.. The HotSpot VM emits more than 500 data points using JFR, most of them not available through other means besides parsing log files. The new API enables the continuous consumption of JFR data on disk, both for in-process and out-of-process applications.

One of the more controversial additions in this release is a record support in a preview version. Records are a new kind of type declaration in the Java language, and area restricted form of class. The developers say that records give up a freedom that classes usually enjoy: the ability to decouple API from representation. In return, records gain a significant degree of concision.

A second preview of text blocks has also been added in this release. Text blocks are multi-line string literals that avoid the need for most escape sequences and automatically format the string in a predictable way. An initial preview of text blocks was included in JDK 13. This preview adds escape sequences for managing explicit white spaces and newline control.

corretto

More Information

JDK 14 On OpenJDK

Related Articles

Java SE 13 Reaches GA

OpenJDK 8 To Get JDK Flight Recorder

Red Hat Takes Over OpenJDK Maintenance

JDK 12 Feature Set Frozen

JDK 10 Released

JavaFX Will Be Removed From JDK

Java 9 Finally Appears

JDK 9 Update

Java 9 Slips Again

No Vote For Java Module System

JDK 9 Release Slips Again 

JDK Delivery Date Update

Jigsaw In JDK 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Advent Of Code 2024 Now Underway
01/12/2024

December 1st is much anticipated among those who like programming puzzles. It is time to start solving small but tricky puzzles on the Advent of Code website with the goal of amassing 50 stars by Chri [ ... ]



Google Adds Premium Tier To Developer Program
29/11/2024

Google has added a premium tier to the Google Developer Program. The new tier is described as providing "a tailored suite of services to help developers throughout the learning, building and deploymen [ ... ]


More News

Last Updated ( Tuesday, 25 February 2020 )