JDK 18: What to expect in Java 18

Due in March 2022, Java 18 has drawn proposals to incubate the vector API, preview pattern matching for switch statements, and adopt UTF-8 as the default character set.

JDK 18: What to expect in Java 18
Deagreez / Getty

Due in March 2022, Java 18 continues to take shape, with eight feature proposals being considered for it so far. The latest feature proposals include a service-provider interface (SPI) for Internet address resolution and a second preview of pattern matching for switch statements.

The OpenJDK page for Java Development Kit (JDK) 18 lists the service-provider interface as proposed to target JDK 18 while a simple web server, a vector API, code snippets, a reimplementation of core reflection, and the UTF-8 charset officially target JDK 18 as of November 1.

A second incubation of a foreign function and memory API, which was incubated in Java 17, also is eyed for Java 18, as is another preview of pattern matching for switch. A record patterns and array patterns proposal, updated October 20 and previously anticipated for JDK 18, is not now officially targeted, although it theoretically could become part of the release.

While JDK 17, published September 14, was a long-term support (LTS) release that will receive at least eight years of support from Oracle, JDK 18, expected in March 2022, 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.

Copyright © 2021 IDG Communications, Inc.

How to choose a low-code development platform