Java 14¶
Java 14 (2020):
-
Switch expressions (standard): The preview feature from Java 12 became standard.
-
Records (preview): Compact syntax for classes that are simple data carriers.
- Pattern Matching for instanceof (preview): Simplified type checking and casting.