The latest Java version is Java 21 and was released on September 19, 2023. The most important features in Java 21 are Virtual Threads, Record Patterns, Pattern Matching for switch, and Sequenced Collections.
The upcoming Java version is Java 22 and has been in the so-called "Rampdown Phase One" since December 7, 2023, i.e., the feature set is fixed. The most important new features are Unnamed Variables and Patterns, Launch Multi-File Source Code Programs, and the Foreign Functions & Memory API. The release is planned for March 19, 2024.
The Java cheat sheet contains the new features of both the current Java version 21 and the upcoming version 22 as well as all features that are in preview or incubator status as of Java 22, such as Statements before super(...), Stream Gatherers, Structured Concurrency, Scoped Values, String Templates, and Implicitly Declared Classes and Instance Main Methods.
In the Java cheat sheet, you will also find the most important changes to all older Java versions since Java 10. If you are interested in a specific Java version – below you will find an overview of all articles about older Java versions:
Q: I am already subscribed to the newsletter. How do I get the Java version cheat sheet?
A:If you are already registered for the newsletter, you will automatically receive a new version of the cheat sheet by e-mail with every new Java version. You do not need to fill out this form.