Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What are the new features of JDK14

Shulou Source: shulou.com Published: 2022-06-02 07:13:15 10月02日 Update

This article mainly explains "What are the new features of JDK14". The explanation in this article is simple and clear, easy to learn and understand. Please follow the ideas of Xiaobian to study and learn "What are the new features of JDK14" together!

Although JDK13 was released on September 17 of this year, it will not affect the development of the next version of JDK14. I heard that the official new function will be announced soon, so we might as well infer it in advance here.

In its September 17 release, Oracle mentions that the functionality of switch expressions is expected to be finalized in JDK14. As I mentioned in my previous article, the switch expression was introduced as an experimental syntax in JDK12 and JDK13, and after three iterations, the switch expression was introduced as a matter of course.

It also includes an update to JDK Enhancement Proposal (JEP): Java mapped byte buffers will support non-volatile memory (NVM). This will allow FileChannel to create MappedByteBuffer instances pointing to NVM.

NVM enables programmers to build and update program state across programs without incurring the large replication or transfer costs typically required for input and output operations. This is especially important for trading programs. Therefore, the main goal of this JEP is to ensure that clients can access and update NVM consistently and efficiently from Java programs.

Another goal is to implement this functionality using JDK's internal API Unsafe, which can be made available to classes other than MappedByteBuffer that want to commit to NVM. It also provides the ability to track buffers on NVM maps using existing APIs for oversight and management.

Oracle plans to release JDK14 in March 2020 after a six-month release cycle. JDK14 will be a non-LTS (Non-Long Term Support Release) and will only be supported for 6 months.

If you are interested, you can download a preview version from https:// jdk.java.net/14/

Thank you for reading, the above is "JDK14 what new features" of the content, after the study of this article, I believe we have a deeper understanding of what new features JDK14 this issue, the specific use of the situation also needs to be verified. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!

Tags: Programs features versions functions expressions learning support updates content that is articles goals valid important logical three up and down things interests at the same time Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Apple MariaDB Huawei OPPO Reno