Java 17 Pattern Matching (incl. Sealed Classes and Deconstruction Pattern)

preview_player
Показать описание
What's new in Java 17? How to do Pattern Matching in Java? What is already included in Java 17 LTS version, and what is coming up in near future? Watch this video and find out. This is another video in my Java 17 series, and it's a big topic. I will eventually cover all Java 17 new features, slice by slice.

Like the content on my channel? Then please click the like button, subscribe to my channel and notifications, and always, feel free to leave some feedback in the comments section. Also, please share the link to this video for at least one of your friends, who might find this content interesting.

Timecodes:
0:00 - Introduction
0:30 - Java 17 and jshell - What's included?
2:06 - JEP 394 - Pattern Matching for instanceof
4:26 - JEP 406 - Pattern Matching for switch (Preview)
11:45 - Guarded pattern and parenthesized pattern
15:52 - JEP 409 - Sealed classes and pattern matching
18:04 - My thoughts on Java Pattern Matching and Java 17 - and the future
20:06 - Future with the deconstruction pattern and Java 21 LTS version
22:01 - Conclusion and final words

Here are some of the mentioned links:
Рекомендации по теме
Комментарии
Автор

Very good explained. Thank you very much 😊

saschahomeier
Автор

This video was really awesome!
I really learned a lot from it and I'm looking forward to include these features in my future programs, thanks! :D

joakimleed
Автор

It looks like Java is trying to catch up with Scala...

17:30 would the compiler scream at you if you do not cover all the sealed interface's permitted subtypes?

lucasterable