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 :
- Pattern Matching for Switch
- 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 :
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 :
Most of the remaining features are related to the JVM .
Here is the full list :