Java 9 Features

In this section we are about the first version of the Java 9 Features announced by Oracle.



Java 9 Features: First version of Java 9 Features announced

The plan for the development of the Java is on full swing and oracle is announced the first features list of Java 9 on August 18, 2014. The first set of Java Enhancement Proposal (JEPs) is announced by Oracle and this is the major step toward the development of JDK 9.

Here is the details of the first set of Java 9 features:

Here we will discuss the proposed new APIs, performance features and other enhancements in the JDK 9 (Java 9).

New APIs

The next release of the Java, Java 9 is set to feature three new APIs:

  1. Lightweight JSON API - A new lightweight JSON API to be introduced for consuming and generating JSON. The JSON data will be generated as documents format as well as the data streams.
  2. HTTP 2 Client - Introduction to the HTTP 2.0 in the framework. It will bring the websockets and replace the old  HttpURLConnection.
  3. Process API Updates - New API has been announced which can be used for controlling and managing the operating-system processes.

Java 9 Features

Oracle also proposed three JVM/performance related enhancements features:

  1. Improve contended locking -  This improve contended locking will provide the better performance in the multi-threading environment when threads are competing for access to objects in the runtime. This improvement will improve the performance between threads.
  2. Segmented code cache - Through this enhancement the code cache will be divided into distinct segments. Each segment will contain the compiled code of a particular type and this will improve the performance. This enhancement will also make a base for future extenstions.
  3. Smart Java compile - This improvement will allow to use the  sjavac tool (Smart Java Compiler) by default in the JDK build. It is to be generalized to so that it can be used to build large projects other than the JDK.

Java 9 to be release in 2016 will also feature the improved support for multi-gigabyte heaps and also a self-tuning JVM. This will give a performance boost to the Java based applications.

Modular Source Code

The source code of the JDK will be organized into modules and lay down the foundation for the structured implementation of the Jigsaw Project.

JEP 201 is aiming to reorganise the source code of the JDK into modules, and thereby essentially lay the foundations for a structured implementation of Project Jigsaw. The goal of the Jigsaw Project is to make the Java SE Platform, and the JDK scalable to the small computing devices easily.

Check the News, articles and example of the Java 9 Programming Language.