Java 8 vs Java 11

 The latest version the java Development Kit , Java 11 is out.

0

  • What are the key changes ?

New Features

First , What new features have been added in the 4 and a half years between the two versions ?


1) Var Keyword The developer - friendly var keyword that came with Java 10 is another feature which helps to reduce the boilerplate coding . By only affecting local variables , the type Inference stope you repeating the same text over and over again.

2) Version String Schema : Another between the two version is how the version strings are formatted. Versions will not be using a new schema of so <major>.<minor>.<security> that rather than something like 11u31 , where the security patch in unknown , you can find out simply by looking at the last value.

3) Modularity : One of the biggest changes is the modularity introduced with Java 9. Modularity allows for you to split your application into different modules , but also changes how Java handles its API internally.

4) Multi-jar releases : One of the feature we tested out at the start of the year was the use of multi-jar releases. This feature provides a way for you to still code with the latest features of Java 11 while maintaining supports and functionality for Java 8 clients. It's certainly worth checking out.

Other changes : 

1) OpenJDK is now as close to Oracle JDK binaries as possible , after changing to a more frequent released schedule for Java 9 onward . Due to this Oracle JDK , 11 and OpenJDK 11 are more interchangeable than OpenJDK 8 and Oracle JDK 8 are.

2) The default garbage collector has been changed to G1 - To reduce the pause times for most users the default garbage collector has been switched.

Comments

Unknown said…
Thank you .. this blog isvery useful.

Popular posts from this blog

Python Program to Generate Password

How to become a Hacker ?