Recently, a new version of the JDK has released a dual Cheese Li, now JDK 14, and from the beginning of August 2017, JDK update frequency becomes once every six months, will be fixed each year in March and September release a new version .
According to this frequency, before long, JDK 20 will launch ...
The earliest JDK release in 1996, believed to be smaller than many readers age, frequency of its release as follows:
Java 8 and Java 11 provides support for the current LTS (long term support) version;
September 2018, with the release of Java 11, Java 10 since that day is no longer supported.
Oracle in January 2019 before commercial use of Java 8 long-term support, and for non-commercial updates will continue until December 2020;
In addition, AdoptOpenJDK also offers free Java 8 update.
11 long-term support for Java will no longer be provided by Oracle, but changed by AdoptOpenJDK OpenJDK community.
Each major version updates
The first release from Java to now, there have been 24 years, 24 years, the CCP has released 14 version, then. Let's breakdown what each version adds the main characteristics of what.
JDK 1.0
The first edition in 1996, released January 23, called for the Oak. But the real first stable version of the JDK 1.0.2, is called Java 1.
JDK 1.1
- Inner classes
- JDBC
- JavaBeans
J2SE 1.2
- Java Collections Framework
- Swing graphical API
- JIT compiler
J2SE 1.3
- HotSpot JVM
- JNDI
- JPDA
- A dynamic proxy class
J2SE 1.4
- assert keyword
- Abnormal chain
- NIO
J2SE 5.0
- Generics
- Metadata
- Automatic sealing, automatic unboxing
- enumerate
- Variable parameter function
- Strengthening for each cycle
- Swing
- java.util.concurrent 包
Java SE 6
- JDBC 4.0 support
Java SE 7
- String type used in a switch
- try-with-resources
- The new bytecode instruction invokedynamic
- Allowed to join the underlined numerical literals
Java SE 8
- Lambda expressions
- rhino
- Removed virtual machine memory management on behalf of permanent
- The new date and time API
Java SE 9
- Jigsaw project will be modular JDK
- jshell
- jlink
Java SE 10
- Local variable type inference
- G1 is suitable for multi-threaded complete garbage collection
Java SE 11
- ZGC
- Epsilon
Java SE 12
- Shenandoah
- Switch expression (Preview)
Java SE 13
- Text Blocks (Preview stage)
- Dynamic CDS Archive
Java SE 14
- Records
- Switch expression
- Friendly null pointer exception
- Strapping Tools
You either send the new version, I use Java 8
Java 8 from the launch date, has quickly developed into a Java 14, a lot of people conducted a survey, final results showed that most users are Java 8.
Just put two statistics that we feel at:
From these statistics, you can see used most or Java 8, followed by Java 11.
The reason why most people choose Java 8 and Java 11, because the two versions are now officially announced the long-term support version.
The current Java 8 and Java 11 before 2023 will get the official continued support. And just released in March JDK 14, after September of this year will no longer maintain updated. Other non-LTS versions released after JDK 8 update maintenance time is around this year.
JDK in the official website you can see the updated record JDK 8, and most recently in 2020 January 14.
In addition, two long-term support version of JDK 8 and 11 JDK, compared with 11 new features certainly JDK some more, but not really new features not available in non-liter.
On the one hand in JDK 8 is introduced in JDK 7 three years after the launch, which contains many important language features and technology upgrades, such as functional programming, there are some small changes such as the introduction of HashMap red-black trees.
So more JDK 8 users, on the other hand, JDK upgrade is a time-consuming and labor-intensive big project, if there are not enough benefits, many companies and organizations are reluctant to large-scale upgrades.
** So, it is foreseeable that in the next long period of time, JDK 8 will still be the mainstream version. ** But it is worth mentioning that this release of JDK 14 does add a few new features remarkable.
Finally, the new version after another, in the end or not to upgrade?
The author believes that if a production environment using Java 8, at present absolutely no need to upgrade, if you want to upgrade, the preferred Java 11; however, as a developer, but added that they can install the machine a new version of the JDK, learn and understand the new properties .
SO, you either send the new version, I use Java 8.