A comprehensive guide to Java 12 covering migration considerations, new language features, API updates, and JVM improvements. Key highlights include: switch expressions as a preview feature, the new teeing collector for combining two stream collectors, CompletableFuture error recovery additions, String::indent and String::transform methods, CompactNumberFormat, and Files::mismatch. On the JVM side, Java 12 ships with default CDS archives for faster startup, the experimental Shenandoah low-pause-time garbage collector, and G1 improvements for promptly returning unused memory. Migration advice emphasizes that Java 12 lacks free LTS, making the path from 11 to 17 a commitment requiring careful consideration. Minimum version requirements for IntelliJ, Eclipse, Maven, and Gradle are also provided.
Table of contents
▚ Migrating to Java 12▚ Language Features and API Updates▚ JVM Improvements▚ Removed And Deprecated▚ SummarySort: