Java 17 features every Java developer should know

Java 17 released today ( 14 September 2021).

Though there are around 14 new features introduced in this release , only two of them directly help developers and they should be aware of these.

Those two are :

  1. Pattern Matching for Switch
  2. Sealed Classess

Pattern Matching for Switch is introduced as a preview feature and it is one among the ongoing features released by the Java team in the pattern matching series.

This is explained in detail here with examples :

Pattern Matching for Switch

Sealed classes were introduced in Java 15 as a preview feature and have now become a permanent feature in Java 17.

Here is a detailed explanation on this :

Sealed Classes and Interfaces

Most of the remaining features are related to the JVM .

Here is the full list :

https://openjdk.java.net/projects/jdk/17/


Posted

in

by

Comments

Leave a Reply

Discover more from The Full Stack Developer

Subscribe now to keep reading and get access to the full archive.

Continue reading