Core JAVA

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.

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
Dinesh Rajput

Dinesh Rajput is the chief editor of a website Dineshonjava, a technical blog dedicated to the Spring and Java technologies. It has a series of articles related to Java technologies. Dinesh has been a Spring enthusiast since 2008 and is a Pivotal Certified Spring Professional, an author of a book Spring 5 Design Pattern, and a blogger. He has more than 10 years of experience with different aspects of Spring and Java design and development. His core expertise lies in the latest version of Spring Framework, Spring Boot, Spring Security, creating REST APIs, Microservice Architecture, Reactive Pattern, Spring AOP, Design Patterns, Struts, Hibernate, Web Services, Spring Batch, Cassandra, MongoDB, and Web Application Design and Architecture. He is currently working as a technology manager at a leading product and web development company. He worked as a developer and tech lead at the Bennett, Coleman & Co. Ltd and was the first developer in his previous company, Paytm. Dinesh is passionate about the latest Java technologies and loves to write technical blogs related to it. He is a very active member of the Java and Spring community on different forums. When it comes to the Spring Framework and Java, Dinesh tops the list!

Share
Published by
Dinesh Rajput

Recent Posts

Strategy Design Patterns using Lambda

Strategy Design Patterns We can easily create a strategy design pattern using lambda. To implement…

2 years ago

Decorator Pattern using Lambda

Decorator Pattern A decorator pattern allows a user to add new functionality to an existing…

2 years ago

Delegating pattern using lambda

Delegating pattern In software engineering, the delegation pattern is an object-oriented design pattern that allows…

2 years ago

Spring Vs Django- Know The Difference Between The Two

Technology has emerged a lot in the last decade, and now we have artificial intelligence;…

2 years ago

TOP 20 MongoDB INTERVIEW QUESTIONS 2022

Managing a database is becoming increasingly complex now due to the vast amount of data…

2 years ago

Scheduler @Scheduled Annotation Spring Boot

Overview In this article, we will explore Spring Scheduler how we could use it by…

2 years ago