Skip to Main Content
 

Major Digest Home JDK 22: The new features in Java 22 - Major Digest

JDK 22: The new features in Java 22

JDK 22: The new features in Java 22

Java Development Kit 22, due in March 2024 as the next version of Java Standard Edition, will include 12 features, with a second preview of scoped values and a preview of stream gatherers being the last additions.

JDK 22 reached the rampdown one phase, with the feature set now frozen, on December 7. General availability is set for March 19, with a second rampdown phase due January 18 and two release candidates planned for February. Bugs will be examined between now and the general release.

Scoped values enable the safe and efficient sharing of immutable data within and across threads. These are preferred to thread-local variables, especially when using large numbers of thread variables. Goals include ease of use, comprehensibility, robustness, and performance.

To read this article in full, please click here

Source:
Published: