Recently, the new version of JDK and double 叒 yi has been released, currently JDK 14, from August 2017, JDK update frequency has become every six months, will be fixed in March and September each year to release the new version.

At this rate, it won’t be long before JDK 20 comes out…

The original JDK was released in 1996, much younger than many readers, with the following releases:

Java 8 and Java 11 are currently supported LTS (long term support) versions;

In September 2018, with the release of Java 11, Java 10 is no longer supported as of that date.

Oracle provides long-term support for Java 8 for commercial use until January 2019, while non-commercial updates will continue to be available until December 2020;

In addition, AdoptOpenJDK also provides a free update for Java 8.

Long-term support for Java 11 will no longer be provided by Oracle, but will be provided by the OpenJDK community’s AdoptOpenJDK.

Major updates of each version

It has been 24 years since the first version of Java was released, and there have been 14 releases in 24 years. Let’s take a look at the major features that have been added in each release.

JDK 1.0

The first version was released on January 23, 1996, called Oak. The first stable release, JDK 1.0.2, was called Java 1.

JDK 1.1

  • The inner class
  • JDBC
  • JavaBeans

J2SE 1.2

  • Java Collections Framework
  • Swing graphical API
  • The JIT compiler

J2SE 1.3

  • HotSpot JVM
  • JNDI
  • JPDA
  • Classes used to implement dynamic proxies

J2SE 1.4

  • Assert keyword
  • Abnormal chain
  • NIO

J2SE 5.0

  • The generic
  • metadata
  • Automatic sealing, automatic unpacking
  • The enumeration
  • Variable parameter function
  • Strengthen the for each loop
  • Swing
  • Java. Util. Concurrent packages

Java SE 6

  • Support JDBC 4.0

Java SE 7

  • Use string types in switch
  • try-with-resources
  • New Invokedynamic bytecode instructions
  • Underscores are allowed in numeric literals

Java SE 8

  • Lambda expressions
  • Nashorn
  • Removed persistent generation from virtual machine memory management
  • New date and time API

Java SE 9

  • The Jigsaw project modularized the JDK
  • jshell
  • jlink

Java SE 10

  • Local variable type inference
  • Multithreaded complete garbage collection for G1

Java SE 11

  • ZGC
  • Epsilon

Java SE 12

  • Shenandoah
  • Switch expression (preview)

Java SE 13

  • Text Blocks (Preview Stage)
  • Dynamic CDS archiving

Java SE 14

  • Records
  • Switch
  • Friendly null pointer exception
  • Packaging tools

You can send the new version. I’ll use Java 8

Since the launch of Java 8, it has rapidly evolved to Java 14. Many people have done surveys, and the final results show that Java 8 is the largest user.

Two random statistical results for you to feel:

From these statistics, you can see that Java 8 is still the most used, followed by Java 11.

The reason most people chose Java 8 and Java 11 is because both versions are currently officially supported for the long term.

The current Versions of Java 8 and Java 11 will be officially supported until 2023. JDK 14, released in March, has not been updated since September of this year. Other non-LTS releases released after JDK 8 will be updated this year or so.

You can find updates to JDK 8 on the JDK website. The last update was dated January 14, 2020.

In addition, JDK 8 and JDK 11, both of which have long been supported, certainly have more new features in JDK 11 by comparison, but there are no real must-have new features.

On the one hand, JDK 8 comes three years after JDK 7, and includes many important language features and technical upgrades, such as functional programming, as well as minor changes such as the introduction of red-black trees in HashMap.

On the other hand, upgrading the JDK is a time-consuming and labor-intensive project, and many companies and organizations will be reluctant to make large-scale upgrades without sufficient benefits.

So you can expect JDK 8 to remain the mainstream version for a long time to come. It’s worth noting, however, that JDK 14 does add several notable new features.

Finally, new versions keep coming out. Should you upgrade?

The authors argue that if Java 8 is used in a production environment, there is no need to upgrade at this time, and if Java 11 is the preferred upgrade. However, as a developer, you can install a new VERSION of the JDK on your own and learn about the new features.

SO, you can send the new version, I use Java 8.