Download Link1 Download Link2
Java 9 Features
-
Project Jigsaw - Module System
The major change in Java 9 comes in the form of Project Jigsaw, which is an all-new module system. This feature will bring modularity to JDK, run-time images, Java source code, etc. The developers can also create their own modules and simplify the code.
-
JShell
Java 9 introduces JShell and a Read-Eval-Print Loop (REPL) for the Java Programming Language. REPL allows you to evaluate code snippets such as declarations, statements, expressions. You can test your code as you create it, and way before you are done with your whole project. -
Stream API enhancements
With Stream API enhancements, Java 9 comes with the added methods to conditionally take or drop items from the Stream, create a Stream from nullable value while expanding Java SE APIs, etc. -
Process API Changes
With Process API improvements, Java 9 ensures that OS process are controlled and managed in a better manner. -
Segmented Code Cache
With the help of Segmented Code Cache in JDK 9, the code cache can be divided into different segments. Each of those segments can contain compiled code of a particular type. This Java 9 feature is expected to improve performance. -
Ahead of time compilation
While it’s in the experimental stage, AOT-compilation is expected to improve the startup time of applications. -
New HTTP 2 Client
Java 9 features list is incomplete without the mention of a new HTTP client API for implementing HTTP/2 and WebSocket. It’ll improve web page loading times, performance, and reduce resource usage. -
Parser API for Nashorn
JDK 9 ships with a parser API for Nashorn, whose goal was to implement a lightweight high-performance JS runtime in Java with a native JVM. This API ensures better Project Nashorn JS support. -
Minor features:
- Multi-release JARs
- Process API updates
- Garbage Collector improvements
- Better Javadoc
- Private interface methods
No comments:
Post a Comment