Java 19 (September 2022) kicked off the public Project Loom and Pattern-Matching previews—letting developers test Virtual Threads and Record Patterns under --enable-preview while shipping handy stdlib helpers like HashMap.newHashMap and AutoCloseable ExecutorService right away!
More lessons in Complete Core Java