As of now, the official Java website has released JDK12. Although the current mainstream version is JDK8, the new features that JDK is constantly adding are still very good. Now let's take a look at the changes in the new version of JDK.
JDK 1.9
Java 7 was released in 2011, Java 8 was released in 2014, and java9 was released on September 21, 2017. You may have heard about Java 9's module system, but there are many other updates in this new version. Here are nine exciting new features coming with Java 9.
1. Java Platform Level Module System
2. Linking
3. JShell: Interactive Java REPL
4. Improved Javadoc
5. Collection factory method
6. Improved Stream API
7. Private interface method
8. HTTP/2
9. Multi-version compatible JAR
JDK10
1. Local variable type inference
2. GC improvements and memory management
3. Thread Local Handshake (JEP 312)
JDK 10 will introduce a new way to perform callbacks on a thread, so it will be convenient to stop a single thread instead of stopping all threads or none.
4. Heap Allocation on Alternate Memory Devices (JEP 316)
Allows HotSpot VM to allocate Java object heap memory on an alternate memory device that will be specified by the user.
5. Other Unicode Languages - Markup Extensions (JEP 314)
The goal is to enhance java.util.Locale and its related APIs to implement other Unicode extensions to the language markup syntax (BCP 47 ).
6. Experimental Java-based JIT compiler
Oracle wants to use its Java JIT compiler Graal as an experimental JIT compiler on Linux/x64 platforms.
7. Root Certificate (JEP 319)
The goal of this is to open source the root certificate in Oracle's Java SE.
8. Root Certificate Issuance Certification
This will make OpenJDK more attractive to developers, and it also aims to reduce the differences between OpenJDK and Oracle JDK builds.
9. Consolidating the JDK ecosystem into a single repository (JEP 296)
The main goal of this JEP is to perform some memory management and combine the many repositories of the JDK ecosystem into a single repository .
10. Remove the javah tool (JEP 313)
The javah tool has been removed from the JDK. This is very simple and important.
Java 10 early adopter
Early adopter address: http://openjdk.java.net/projects/jdk/10/
JDK 11
jdk11 will be released officially on September 25th. The identified new features include the following 17
181 Nested class visibility control
309 Dynamic file constants
315 Improvements to Aarch64 Intrinsics
318 Epsilon– A no-op garbage collector
320 Removing Java EE and CORBA modules
321 HttpClient
323 Local variable syntax for Lambda parameters
324 Key agreement for Curve25519 and Curve448 algorithms
327 Unicode 10
328 Flight Recorder
329 haCha20 and Poly1305 encryption algorithms supported
330 Launch Single-File Source-Code Programs
331 Low-overhead Heap Profiling
332 TLS 1.3 support
333 ZGC: A Scalable Low-Latency Garbage Collector
335 Deprecated Nashorn JavaScript engine
336 Deprecated Pack200 tools and API
JDK12
Official documentation: https://docs.oracle.com/en/java/javase/12/
The above is the detailed content of What is the latest version of jdk officially released by oracle. For more information, please follow other related articles on the PHP Chinese website!