Skip to content

CodeSakshamY/demos-java

 
 

Repository files navigation

Java demos - new language features from Java 11 to 25

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

All relevant info is written down in comments inside sources.

Prerequisites

This project requires Java JDK 25 to run. I namely use GraalVM for JDK 25 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-25.0.jar. But you may miss some important context and information without reading the comments in the source code.

Using --enable-preview and --add-modules options is necessary to make the newest Java language features available.

Note: Until Maven 3.9.12 is released, you would see warning about Guice library using deprecated sun.misc.Unsafe class when running Maven install. This is known and about to be fixed.

Contributing

You can help making this project better!

Look for the issues to see what can be done.

The most important rule: Your code must compile and run under Java 25. GitHub workflow is now set up to ensure this and PRs that cannot compile using mvn clean install will not be merged until the problems are fixed.

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.

About

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

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%