Java 25 features
Every feature that matters in Java 25, each with a short explanation and an example you can run.
- Write Java without public static void main
Compact source files and instance main methods: the smallest Java program is now three lines.
- Scoped Values vs ThreadLocal
Share immutable data down a call chain without parameters and without cleanup bugs.
- Flexible constructor bodies
Validate arguments before calling super(), without static helper tricks.
- import module java.base explained
One import line instead of a wall of java.util and java.util.stream imports.