What Is New In Java 11

Java language version 11, the next version of Java programming language that is currently in release candidate phase is expected to be generally available on Sept 25, 2018. This article lists new features in JDK 11.

Java language version 11, the next version of Java programming language that is currently in release candidate phase is expected to be generally available on Sept 25, 2018. That is a couple of more weeks from now.
Java Development Kit (JDK) 11 is not just an upgrade. It is a much-improved version of the language with several features focusing on performance. Here is a list of new features available in JDK 11.
Nest-Based Access Control
Introduce nests, an access-control context that aligns with the existing notion of nested types in the Java programming language. Nests allow classes that are logically part of the same code entity, but which are compiled to distinct class files, to access each other's private members without the need for compilers to insert accessibility-broadening bridge methods.
Dynamic Class-File Constants
Extend the Java class-file format to support a new constant-pool form, CONSTANT_Dynamic. Loading a CONSTANT_Dynamic will delegate creation to a bootstrap method, just as linking an invokedynamic call site delegates linkage to a bootstrap method.
Improve Aarch64 Intrinsics
Improve the existing string and array intrinsics, and implement new intrinsics for the java.lang.Math sin, cos, and log functions, on AArch64 processors.
Epsilon: A No-Op Garbage Collector
Develop a GC that handles memory allocation but does not implement any actual memory reclamation mechanism. Once the available Java heap is exhausted, the JVM will shut down.
Remove the Java EE and CORBA Modules
Remove the Java EE and CORBA modules from the Java SE Platform and the JDK. These modules were deprecated in Java SE 9 with the declared intent to remove them in a future release.
HTTP Client (Standard)
Standardize the incubated HTTP Client API introduced in JDK 9, via JEP 110, and updated in JDK 10.
Local-Variable Syntax for Lambda Parameters
Allow var to be used when declaring the formal parameters of implicitly typed lambda expressions.
Key Agreement with Curve25519 and Curve448
Implement key agreement using Curve25519 and Curve448 as described in RFC 7748.
Unicode 10
Upgrade existing platform APIs to support version 10.0 of the Unicode Standard.
Flight Recorder
Provide a low-overhead data collection framework for troubleshooting Java applications and the HotSpot JVM.
ChaCha20 and Poly1305 Cryptographic Algorithms
Implement the ChaCha20 and ChaCha20-Poly1305 ciphers as specified in RFC 7539. ChaCha20 is a relatively new stream cipher that can replace the older, insecure RC4 stream cipher.
Launch Single-File Source-Code Programs
Enhance the java launcher to run a program supplied as a single file of Java source code, including usage from within a script by means of "shebang" files and related techniques.
Low-Overhead Heap Profiling
Provide a low-overhead way of sampling Java heap allocations, accessible via JVMTI.
Transport Layer Security (TLS) 1.3
Implement version 1.3 of the Transport Layer Security (TLS) Protocol RFC 8446.
ZGC: A Scalable Low-Latency Garbage Collector
The Z Garbage Collector, also known as ZGC, is a scalable low-latency garbage collector.
Deprecate the Nashorn JavaScript Engine
Deprecate the Nashorn JavaScript script engine and APIs, and the jjs tool, with the intent to remove them in a future release.
Deprecate the Pack200 Tools and API
Deprecate the pack200 and unpack200 tools, and the Pack200 API in java.util.jar.