Java Development Kit (JDK) 21, due in September as the next long-term support release of Oracle’s standard Java implementation, is taking shape, with sequenced collections, virtual threads, a preview of string templates, and a third preview of a foreign function and memory API slated for the release so far.
The foreign function and memory cpreview was added within the past few days, although it has yet to be officially listed on the JDK 21 release page at openjdk.org.