Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.21 KB

File metadata and controls

48 lines (32 loc) · 1.21 KB

Java 25 Features Demo

This project demonstrates the new features introduced in Java 25 (October 2025). Each package contains examples for specific JEPs (JDK Enhancement Proposals).

Features and Examples

1. JEP 512: Simple Java Program Launcher

Location: src/main/java/dev/prasadgaikwad/jep512/

  • Simplified program entry points
  • No explicit class wrapper needed
  • Direct method declarations
  • New simplified IO API

Requirements

  • Java 25
  • Maven 3.11.0 or higher

Building and Running

# Compile the project
mvn clean compile

# Run specific examples
mvn exec:java -Dexec.mainClass="dev.prasadgaikwad.jep512.CompactSourceAndInstanceMain"

Project Structure

src/main/java/dev/prasadgaikwad/
├── jep512/              # Simple Program Launcher examples

Notes

  • Some features might require enabling preview features using --enable-preview flag
  • Examples are designed to demonstrate practical use cases of each feature
  • Each package includes detailed comments explaining the features

Contributing

Feel free to contribute additional examples or improvements through pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.