Java 12 Features

1.Java 12 Features
2.JVM Changes

  • JEP 189 – Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
  • JEP 346 – Promptly Return Unused Committed Memory from G1
  • JEP 344 : Abortable Mixed Collections for G1
  • JEP 230 and 344
  • JEP 341 Default CDS Archives

3.Language Changes And Features

  • Switch Expressions (Preview)
  • File.mismatch method
  • Compact Number Formatting
  • Teeing Collectors
  • Java Strings New Methods
  • JEP 334: JVM Constants API
  • JEP 305: Pattern Matching for instanceof (Preview)

Java 12 Features

Some of the important Java 12 features are;

  1. JVM Changes – JEP 189, JEP 346, JEP 344, and JEP 230.
  2. Switch Expressions
  3. File mismatch() Method
  4. Compact Number Formatting
  5. Teeing Collectors in Stream API
  6. Java Strings New Methods – indent(), transform(), describeConstable(), and resolveConstantDesc().
  7. JEP 334: JVM Constants API
  8. JEP 305: Pattern Matching for instanceof
  9. Raw String Literals is Removed From JDK 12.

Let’s look into all these Java 12 features one by one.

Popular posts from this blog

Window function in PySpark with Joins example using 2 Dataframes (inner join)

Complex SQL: fetch the users who logged in consecutively 3 or more times (lead perfect example)

Credit Card Data Analysis using PySpark (how to use auto broadcast join after disabling it)