...

/

Java 12 - 17: Features

Java 12 - 17: Features

Learn about the new features released in Java 12-17.

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 released in March of 2021 and includes record and pattern matching for instanceof as included features. ...