Java 22 (March 2024) promoted Project Panama's Foreign Function & Memory API (JEP 454) into production, restored '_' as clean Unnamed Variables & Patterns (JEP 456), extended single-file runs to multi-file Java scripts (JEP 458), and introduced Stream Gatherers & Class-File API in Preview.
More lessons in Complete Core Java