From Java 21 to Java 25
Upgrade to Java 25 from Java 21
Java 25 New Features from Java 21
Java Language
- Module Import Declarations
- Flexible Constructor Bodies
- Compact Source Files and Instance Main Methods
- Pattern Matching
Core Library
- Stream Gatherers
- Class-File API
- Integrity by Default
Multi-threading
- Scoped Values
- Structured Concurrency
- Synchronize Virtual Threads without Pinning
- Stable Values
JVM
- Garbage Collectors
- Compact Object Headers
- Project Leyden
Tools
- Launch Multi-File Source-Code Programs
- Annotations Processing