FEATURES OF JAVA 9
There are many features added in java9 . Let me sort down few topics on what all were added and updated.
- Jshell(JAVA+REPL):- An interactive tool to evaluate declarations, small code snippets with the help of API. It is a convenient feature for the purpose of testing.
- Jigsaw Project:- It is used to access a public class by any other public class on the class-path. Project jigsaw is the name kept for modularization. Benefit of modularization is that developers can now create lightweight, scalable applications. Especially, when we work with the Internet of Things(IOT), we find more apps written in Java.
- Interfaces:- To avoid more re-usability, private methods are introduced in java9.
- Collections:- To create list and maps, factory methods are introduced to create empty or non-empty objects.
- A new client called HTTP2 has been introduced, which will bring HTTP2.0 and web sockets replacing HttpURLConnection.
- Compiler improvements:- If we want to run our applications fast, Java 9 has introduced a new technology called ahead-of-time (AoT) compilation where as Java 8 uses Just-in-time (JIT) compilers. These compilers are fast but take sometime before starting.
- The next phase is improvement of Javac tool’s portability and stability.By improving this, the tool enables it to be used directly in the JVM (Java Virtual Machine) as the default setting and the tool has been improvised in such a way that it allows developers to use it even outside the JDK environment.
- Another important update is the backward compatibility of the Javac compiler whose sole function is to compile/work apps and programs created using Java 9 to run on older Java versions.
- Contended locking is improved when threads access to more objects.Smart java compiler or sjavac is improved to allow default use in JDK and general use for building larger products.
- API updates:- The API process has been improved to manage OS processes. In this new version,Jdk has made several updates to the APIs.It is aimed in solving the back-pressure problem.It occurs when the rate of incoming requests is greater than the processing capability of the application.
Benefits of Java 9
There is not much difference between Java 8 and 9. The following are the benefits Java SE 9 has over its predecessors.
- The development speed is significantly increased.
2. Modules are easy to manage and debug.
Get Skil AI’s stories in your inbox
Join Medium for free to get updates from this writer.
3. Micro benchmarks which are code snippets are used to look into the performance of small pieces of code.







