Java 14 Has Been Released | What's new in JDK 14?
The following are some of the important additions and updates in Java SE 14 and JDK 14:
- Switch Expressions is now a permanent feature.
- G1 is enhanced to improve allocation performance on non-uniform memory access (NUMA) memory systems.
- The Flight Recorder event steaming API enables you to continuously consume Flight Recorder data.
- New JDK-specific file mapping modes have been added so that the FileChannel API can be used to create MappedByteBuffer instances that refer to non-volatile (NVM) memory.
- Currencies format with locale-specific accounting formats
- The class com.sun.management.OperatingSystemMXBean has been enhanced to ensure that it reports values based on the current operating environment, such as a container environment.
The following are experimental, preview, or incubator JDK 14 features:
- Records, a preview feature, introduces a new kind of type declaration that's ideal for "plain data carriers," classes that contain data not meant to be altered and only the most fundamental methods such as constructors and accessors.
- Pattern Matching for instanceof Operator, a preview feature, extends the instanceof operator: you can specify a binding variable; if the result of the instanceof operator is true, then the object being tested is assigned to the binding variable.
- Text blocks accept two more escape sequences.
- The jpackage Command is a tool for packaging self-contained Java applications.
- The module jdk.incubator.foreign contains an API that allows Java programs to efficiently access foreign memory outside of the Java heap.
- The Z Garbage Collector (ZGC), previously available only for Linux, is introduced as an experimental feature on Windows and macOS.
Comments
Post a Comment