What is new added features in Java 11

In this article, What is new added features in Java 11, we will discuss some features added in Java 11. This version is currently in the release candidate phase. Java 11 is set to be released by September and will take over Java 10. Let’s discuss the four JEPs currently targeted for Java 11. Java 11 may not be a huge milestone in the JDK series but it does have a few new features and improvements of its own to contribute to the overall Java performance. Let’s take a look at what is being added to the new Java 11 release, how it will change the way you write codes and its direct influence on the performance of your applications.

What is new added features in Java 11

JEP 309: Dynamic Class File Constants

Dynamic Class File Constant decreases the expenditure and disruption of the creation of new forms and class-file constants that can be materialized. It offers a great deal to language designers. The Minimal Constant Dynamic Support executes Dynamic Class File constants by properly analyzing and resolving new Constant Dynamic Constants in Java Virtual Machine class files used by Hotspot.

JEP 318: Epsilon

JEP 328 represents Epsilon which is an Arbitrarily Low-Overhead Garbage Collector. The goal of JEP 310 is the provision of an entirely passive Garbage Collector execution with an allotted limit and the most minimum amount of delay as possible. Handling memory allocation was currently done by Garbage collectors. These collectors also avoid actual memory reclamation’s implementation. Currently the JEP 318 was handling these garbage collectors. Once the available heap has been used up, the Java program will shut down. This JEP was officially targeted for the Java 11 release in January 2018.

JEP 320: Remove the Java EE and CORBA Modules

JEP 320 aims to eliminate the Java EE and Cobra Modules from the JDK. The intent to remove these modules was initially put through the Java 9 release when they were deprecated and it was hinted that they would be completed removed from the Java SE in the future. This JEP must not come as a surprise since these modules were denied default visibility in the Java 9 when it initiated modularity. This JEP also consists of important background information about why these modules were made part of the Java SE and the JDK in the first place. The Motivation section of this JEP brings us to the following conclusions:

  • Since Java EE modules are easily available at third party websites e.g. Maven Central, the inclusion of Java EE technologies in the Java SE or the JDK is no longer necessary.
  • The expenses of maintaining Cobra support has far exceeded its advantages, thereby Java SE Platform and JDK are scheduled to exclude it in the Java 11 release.

JEP 323: Local-Variable Syntax for Lambda Parameters

The declarations of the formal parameters while using var in implicitly typed Lambda Expressions was currently enabled by JEP.

This JEP was officially targeted for the new Java release on February 2nd, 2018.

Previous