Feature Summary: Java SE 25

FeatureDescriptionJSR/JEPReleased in
Region Pinning for G1Enhances the G1 garbage collector by allowing certain regions of memory to be pinned, improving GC efficiency.JEP 423Java SE 22
Foreign Function & Memory APIIntroduces an API that simplifies and standardizes how Java programs interact with native libraries and memory.JEP 454Java SE 22
Unnamed Variables & PatternsExtends pattern matching to allow unnamed variables, simplifying coding where variable names are unnecessary.JEP 456Java SE 22
Launch Multi-File Source-Code ProgramsEnhances Java to run applications supplied as multiple source code files directly, facilitating scripting and small projects.JEP 458Java SE 22