Java 17 ( JDK 17 ) new features | JEP 406: Pattern Matching for switch (Part 6)

preview_player
Показать описание
In these tutorial series we will talk about Java 17 (JDK 17) new features specially about JEP 406: Pattern Matching for switch.

Experimentation with patterns in switch suggests it is common to want to refine patterns. Extending pattern matching to switch allows an expression to be tested against a number of patterns, each with a specific action, so that complex data-oriented queries can be expressed concisely and safely. In Java 16, JEP 394 extended the instanceof operator to take a type pattern and perform pattern matching.This JEP builds on pattern matching for instanceof (JEP 394) and also the enhancements offered by switch expressions (JEP 361). We intend this JEP to coincide with JEP 405, which defines two new kinds of patterns that support nesting. The implementation will likely make use of dynamic constants (JEP 309)

switch expressions and statements, guarded patterns , parenthesized patterns , switch-like expression , pattern-matching semantics , traditional switch construct , multi-way comparisons with switch statements , Java 14, switch expressions (JEP 361), switch is a perfect match for pattern matching , Pattern matching and null , Refining patterns in switch , Patterns in switch labels , Enhanced type checking , Selector expression typing , Dominance of pattern labels , compatibility of an expression with a pattern , Completeness of pattern labels in switch expressions and statements , selector expression is a sealed class (JEP 409), Scope of pattern variable declarations , Dealing with null , Matching null , New label forms arising from null labels , Guarded and parenthesized patterns ,

java 17 new features,jdk 17 changes,jdk 17 pattern matching,jep 406,java 17 vs kotlin,java vs javascript,java vs python,jep 394,switch case,if or switch,functional programming java,functional programming java 17,learn java for google,programming in java for beginners,java champion,how to be a developer,how to learn java,start java programming,java for ai and ml,java for ai development,java ai programming,java architecture,java architect

Java 17 ( JDK 17 ) new features | JEP 406: Pattern Matching for switch (Part 6)
Рекомендации по теме
Комментарии
Автор

Excellent video about implementing a custom annotation, great content, keep going!❣

Rozblue-kyuyrpq
Автор

Your video is so amazing. It makes me understand a lot of things..

NazNaziiii
Автор

Amazing lesson. You guys are helping me a lot. Thank you so much.🙏🙆‍♀🙆‍♀

NazNaziiii