Search⌘ K
AI Features

Java 12 - 17: Features

Explore key Java updates from versions 12 to 17 such as switch expressions, records, pattern matching instanceof, and multiline strings. Understand how these features simplify coding and improve efficiency for modern Java programming.

History

Java 12 was released in March of 2019. The main new feature that was released in Java 12 was switch expressions (for example, the preview feature).

Java 13 was released in September of 2019 and introduced multiline Strings as a preview.

Java 14 was released in March of 2020 and includes record, pattern matching instanceof, and text blocks (as preview features).

Java 15 was released in September of 2020 made text blocks enabled by default as a feature. It also includes sealed classes as a preview feature.

Java 16 was ...