Header Ads

Java 11 features


Java 11 features



As the virtual machine is moving forward and updating quickly, so, at an interval of every six months, Java introduces a new version release to cope with the rate of new technology innovation. The three latest versions in recent years of Java are given below:

Java SE 13 is released on September 2019
Java SE 12 is released on March 2019
Java SE 11(LTS) is released on September 25, 2018


The Most Common Features of  Java SE 11 (LTS):


Java String Methods

isBlank() – This instance method returns a boolean value. Empty Strings and Strings with only white spaces are treated as blank.

strip() – Removes the white space from both the beginning and the end of the string.

repeat(int) –The repeat method repeats the string that many numbers of times as mentioned in the method in the form of an int.

Local-Variable Syntax for Lambda Parameters (JEP 323): JEP (323) allows var to be used to declare the formal parameters of an implicitly typed lambda expression.

Nested based Access Control: By using Java Reflection, it will give an IllegalStateException.Java 11 nested access control addresses this concern in reflection.

JEP 309: Dynamic Class-File Constants: The goal of this JEP is to reduce the cost and disruption of developing new forms of materializable class-file constraints.

JEP 318: Epsilon: A No-Op Garbage Collector: Unlike the JVM GC, which is responsible for allocating memory and releasing it, Epsilon only allocates memory.

JEP 320: Remove the Java EE and CORBA Modules: The modules were already deprecated in Java 9. They are now completely removed.


JEP 328: Flight Recorder: Flight Recorder, which earlier used to be a commercial add-on in Oracle JDK is now open-sourced since Oracle JDK is itself not free anymore.

JEP 321: HTTP Client: The new API supports both HTTP/1.1 and HTTP/2. It is designed to improve the overall performance of sending requests by a client and receiving responses from the server.

JEP 335: Deprecate the Nashorn JavaScript Engine: Nashorn JavaScript script engine and APIs are deprecated, thereby indicating that they will be removed in the subsequent releases.

JEP 333: ZGC: A Scalable Low-Latency Garbage Collector (Experimental): Java 11 has introduced a low latency GC. This is an experimental feature. It’s good to see that Oracle is giving importance to GC’s.

Reading/Writing Strings to and from the Files: Java 11 features strives to make reading and writing of String convenient. It has introduced the following methods for reading and writing to/from the files:

readString()
writeString()

JEP 329: ChaCha20 and Poly1305 Cryptographic Algorithms : Java 11 features provides ChaCha20 and ChaCha20-Poly1305 cipher implementations. These algorithms will be implemented in the SunJCE provider.

JEP 315: 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.



Removal Features and Options of  Java SE 11 (LTS):

1. com.sun.awt.AWTUtilities Class

2. Lucida Fonts from Oracle JDK
appletviewer Launcher

3. Oracle JDK’s javax.imageio JPEG Plugin No Longer Supports Images with alpha.

4. sun.misc.Unsafe.defineClass

5. Thread.destroy() and Thread.stop(Throwable) Methods.

6. sun.nio.ch.disableSystemWideOverlappingFileLockCheck Property

7. sun.locale.formatasdefaultProperty.

8. JVM-MANAGEMENT-MIB.mib

9. SNMP Agent, JEP 320 Remove the Java EE and CORBA Modules

10. Java Deployment Technologies.

11. JMC from the Oracle JDK, JavaFX from the Oracle JDK



Java SE 11 delivers some exciting features at speed are given below:

1.Nest-based access control.

2. Dynamic class-file constraints.

3. Improve Aarch64 Intrinsic, Epsilon: A No-Op Garbage Collector.

4. Remove the Java EE and CORBA Modules.

5. Launch single-file source-code programs.

6. Low-overhead heap profiling etc.




Today's inspirational quotes: 

"The science of today is the technology of tomorrow"



Steps to Subscribe my blog in 15 secs:
1. Enter your mail id in "Subscribe" box.
2. Enter Captcha for verification.
3. A mail will be received with link in your mail id.Just Click on link  and  then Done .Thank you for subscribing :)

Happy Reading.Happy Learning!!! See you in next post :)

No comments

Note: Only a member of this blog may post a comment.