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

Advertisements

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/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s