JDK 14 Released
Written by Kay Ewbank   
Tuesday, 24 March 2020

JDK 14 is now available in both commercial and free versions, with Oracle announcing that its commercial release of Oracle JDK 14 has been released. JDK 14 development was carried out through the OpenJDK Community, which includes developers across industries and companies.

Oracle says JDK 14 offers improvements including Java language support for switch expressions, new APIs for continuous monitoring of JDK Flight Recorder data, and extended availability of the low-latency Z Garbage Collector to macOS and Windows.

Support for switch expressions extends the switch command so it can be used as either a statement or an expression, and so that both forms can use either traditional case ... : labels (with fall through) or new case ... -> labels (with no fall through).

corretto

New JFR Event Streaming support exposes JDK Flight Recorder data for continuous monitoring.. The HotSpot VM emits more than 500 data points using JFR,, and the new API enables the continuous consumption of JFR data on disk, both for in-process and out-of-process applications.

The release also has three new features in preview versions - pattern matching for instance of, Records, and Text Blocks. Pattern matching allows common logic in a program, namely the conditional extraction of components from objects, to be expressed more concisely and safely.

Record support will give developers a compact syntax for declaring classes that are transparent holders for shallowly immutable data. The  text blocks preview adds 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.

corretto

More Information

JDK 14 On OpenJDK 

Oracle JDK 14 Download

Related Articles

JDK 14 Feature Set Frozen

Java SE 13 Reaches GA

OpenJDK 8 To Get JDK Flight Recorder

Red Hat Takes Over OpenJDK Maintenance

JDK 12 Feature Set Frozen

 

 

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


Gifts For Geeks 2024
22/11/2024

Are you ready for Thanksgiving, when overeating remorse and a surfeit of being thankful causes the unsettling thought that there are only four weeks till the Xmas break? So here is a mix of weird [ ... ]



The Feds Want Us To Move On From C/C++
13/11/2024

The clamour for safe programming languages seems to be growing and becoming official. We have known for a while that C and C++ are dangerous languages so why has it become such an issue now and is it  [ ... ]


More News

{laodposition comment}

Last Updated ( Tuesday, 24 March 2020 )