/demos-java

From Java 11 to Java 23 - new features in practical examples

Primary LanguageJavaThe UnlicenseUnlicense

Java demos - new language features from Java 11 to 22

This application helps to show some new features being introduced in Java versions until Java 22.

All relevant info is written down in comments inside sources.

Prerequisites

This project requires Java JDK 22 to run. I namely use GraalVM for JDK 22 for development and testing.

Usage

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.

Author

Extra - Java Features

Java Features is my list of all Java versions with all JEPs included in each release.

Extra - Java Tech

Java Tech is my list of interesting projects based on Java.

Extra - Java News

Java News is my list with interesting articles and information from Java world started since 09/2023.

Extra - JEP Status

JEP Status is my tracker of changes in OpenJDK JEP Index since 09/2023.