1.

New features in Java 10

Answer»

Java 10 is the fastest release of a Java version till date. It has many important features with multiple changes that have a far-reaching impact. Some of the new features of Java 10 are given as follows:

1. Experimental Java Based JIT Compiler (JEP 317)

A new Java based JIT compiler is introduced by this JEP that is the basis of an experimental AOT(Ahead of Time) compiler.

2. Time-Based Release Versioning (JEP 322)

The version STRING scheme of the JDK and the Java SE platform can be revised using this JEP.

3. Remove the Native Header Generation Tool (JEP 313)

There is no separate tool in Java 10 to generate header files when compiling the JNI code. This was done as the above process can already be performed using javac.

4. Garbage Collector Interface (JEP 304)

The code isolation of different garbage collectors is increased and a clean interface is introduced by this JEP.

5. Parallel Full GC for G1 (JEP 307)

The full GC algorithm is parallelized with the JEP 307. This is done so that the same number of threads can be used in the event of a G1 full GC as are used in the concurrent collections.

6. Heap Allocation on Alternative Memory Devices (JEP 316)

The Java object heap is allocated by the HOTSPOT VM on an alternate memory device that is specified by the user.

7. CONSOLIDATE the JDK Forest into a Single Repository (JEP 296)

The multiple repositories of the JDK forest are combined into a single repository using this JEP.

8. Root CERTIFICATES (JEP 319)

A default SET of root certification authority is provided by the JEP 319 that makes openJDK builds more attractive for developers.

9. Local Variable Type Inference (JEP 286)

Some of the strict type declaration is removed to improve the developer experience. This means that the compiler can infer the type using only var.



Discussion

No Comment Found