Java 21 Pattern Matching Tutorial

Published: 17 September 2023
on channel: Java
31,140
1k

Java 21 is the first Java release with all essential pattern matching features finalized: sealed types and type patterns in an improved switch; also final (and very helpful) are records and record patterns. We'll explore how these language features come together to allow pattern matching, what that means for Java developers, and how we can push these features further to implement a new (to Java) programming paradigm: data-oriented programming.

#RoadTo21 playlist:    • Road to 21  

~~~ Chapters ~~~
0:00 Intro
1:31 Language Features
extended instanceof: https://openjdk.org/jeps/394
switch expression: https://openjdk.org/jeps/361
patterns in switch: https://openjdk.org/jeps/441
sealed types: https://openjdk.org/jeps/409 &    • Sealed Classes - JEP Café #2  
9:09 Pattern Matching
13:41 Data-oriented Programming
records: https://openjdk.org/jeps/395
record patterns: https://openjdk.org/jeps/440
data-oriented programming: https://www.infoq.com/articles/data-o... &    • Data-Oriented Programming - Inside Java Ne...  
unnamed patterns: https://openjdk.org/jeps/443
22:19 Outro

Tags: #Java #Java21 #Design #CleanCode #OpenJDK


On this page of the site you can watch the video online Java 21 Pattern Matching Tutorial with a duration of hours minute second in good quality, which was uploaded by the user Java 17 September 2023, share the link with friends and acquaintances, this video has already been watched 31,140 times on youtube and it was liked by 1 thousand viewers. Enjoy your viewing!