This application helps to show some new features being introduced in Java versions until Java 21.
All relevant info is written down in comments inside sources.
This project requires Java JDK 21 to run. I namely use GraalVM for JDK 21 for development and testing.
The 'UnnamedPatternsAndVariablesDemo' requires at least JDK 21.0.1 update due to potential issues with compilation in the initial Java 21 version.
Checkout the project and explore the files in your favorite IDE.
You can also mvn clean install
the project and then just run java --enable-preview --add-modules=jdk.incubator.vector -jar target\JavaDemos-2.0.jar
.
But you may miss some important context and information without reading the comments in the source code.
Note that --enable-preview
and --add-modules
options are necessary to make the newest Java language features available.
Java Features is my list of all Java versions with all JEPs included in each release.
Java Tech is my list of interesting projects based on Java.
Java News is my list with interesting articles and information from Java world started since 09/2023.
JEP Status is my tracker of changes in OpenJDK JEP Index since 09/2023.