Skip to content

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

License

Notifications You must be signed in to change notification settings

AloisSeckar/demos-java

Repository files navigation

Java demos - new language features from Java 11 to 23

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

All relevant info is written down in comments inside sources.

Prerequisites

This project requires Java JDK 23 to run. I namely use GraalVM for JDK 23 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-23.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.

Contributing

You can help making this project better!

Check the contribution guide or contact me directly for more info.

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.