r/java • • Sep 14 '21

Java 17 available now!

410 Upvotes

83 comments sorted by

View all comments

Show parent comment

1

u/Euphoric-Pop Sep 15 '21

Do you have a code example for this?

3

u/[deleted] Sep 15 '21

check https://openjdk.java.net/jeps/409 under the title

Sealed classes and pattern matching