What to expect in Java 18

Due in March 2022, Java 18 has drawn proposals to incubate the vector API, preview record patterns and array patterns, and adopt UTF-8 as the default character set.

What to expect in Java 18
Deagreez / Getty

Java 18 is still five months away but is already taking shape, with six feature proposals anticipated for it so far, the latest being a simple web server and a re-incubation of a foreign function and memory API.

The OpenJDK page for Java Development Kit (JDK) 18 lists the simple web server as proposed to target JDK 18 while a vector API, code snippets, and the UTF-8 charset officially target JDK 18 as of October 13. The JEP (JDK Enhancement Proposal) index of Java technologies also cites the record patterns and array patterns proposal as eyed for JDK 18, although it has not been officially targeted yet. A second incubation of a foreign function and memory API, which was incubated in Java 17, also is eyed for Java 18.

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