Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Java 9 New Features

Java 9 New Features

Java 9 was released on September 22, 2017 and brought many new features, the most important of which is the now-implemented modular system. Next we will introduce the new features of Java 9 in detail.

Java 9 New Features

For more new features, refer to the official website:What's New in JDK 9

JDK 9 download address:http://www.oracle.com/technetwork/java/javase/downloads/jdk9-doc-downloads-3850606.html

In the examples in the Java 9 articles, we all use the jdk 1.9 environment; you can use the following command to check the current jdk version:

$ java -version
java version "9-ea"
Java(TM) SE Runtime Environment (build 9-ea+163)
Java HotSpot(TM) 64-Bit Server VM (build 9-ea+163, mixed mode)

Next we will introduce the new features of Java 9 in detail:

No. Feature
1 Module System
2 REPL (JShell)
3 Improved Javadoc
4 Multi-Release JAR Files
5 Collection Factory Methods
6 Private Interface Methods
7 Process API
8 Stream API
9 try-with-resources
10 @Deprecated
11 Diamond Operator for Inner Classes
12 Optional Class
13 Multi-Resolution Image API
14 CompletableFuture API