JDK 18: The new features in Java 18

0
207

Java Development Kit (JDK) 18 is set for release on March 22, 2022. The new version of standard Java will have nine new features, with the feature set having been frozen as of December 9.

JDK 18 has moved into a release candidate stage, following two rampdown phases conducted between December and February. A second release candidate is due February 24. Upgrades to standard Java are released every six months, with the most recent version, JDK 17, arriving in September.

The OpenJDK page lists the following features as officially targeting JDK 18: a service provider interface, a simple web server, a third incubation of the vector API, code snippets, a reimplementation of core reflection, a UTF-8 charset, a second incubator of a foreign function and memory API, a second preview of pattern matching for switch statements, and the deprecation of finalization, which was the last addition.

While JDK 17 was a long-term support (LTS) release that will receive at least eight years of support from Oracle, JDK 18 will be a short-term feature release that is supported for six months. Early-access builds of JDK 18 can be found for Linux, Windows, and MacOS at java.net.

Source