# java25-features — Java 25 features with examples Companion code for the ankurm.com article **Java 25 Features with Examples** (https://ankurm.com/java-21-to-25-lts-features/). The explanation lives in the article; this folder holds the runnable sources and the transcripts they produced. There is no `docs/` folder: the depth is inside the article itself, in its expandable sections. ```bash JDK25=/path/to/jdk25 ./run.sh # regenerates output/*.txt ``` - `src/` compiles and runs unchanged on the JDK named in each output header (preview demos need `--enable-preview`, the Vector API needs `--add-modules jdk.incubator.vector`; `run.sh` passes both). - `broken/` fails to compile on purpose; the compiler's own message is committed in `output/15-compile-errors.txt`. - `output/` is real captured output, regenerated by `run.sh`. Timings (the AOT startup runs, the JFR sample counts) are machine dependent: shape, not results. Tested on: Eclipse Temurin 25.0.5.1+2 (JDK 25 GA was 2025-09-16).