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

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

Enhance the Java programming language with pattern matching for switch expressions and statements, along with extensions to the language of 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 ( JDK 17 ) new features | JEP 406: Pattern Matching for switch (Part 4)
java 17 new features , pattern matching for switch , guarded patterns , pattern matching and null , java 17 vs java 11 , java 17 vs java 8 , java 16 vs java 8 , java 11 features , java 15 features , java vs python , lambda expression in java , functional programming java , solid development , java architecture , jdk architecture in java , how to learn java programming language for beginners , jep 401 , java best practices , java best tutorial , java se , java champion , java interview
Рекомендации по теме
Комментарии
Автор

Ich finde dieses Video sehr praktisch und hilfreich für mich. Ich danke Ihnen für Ihre Mühe

NazNaziiii
Автор

I love the way of your teaching, its amazing! Love Ielts lessons from now on! Thank you!🌸🐬

Rozblue-kyuyrpq
Автор

Deine videos …… Sehr hilfreich!!! Danke Schön.

NazNaziiii
Автор

Thanks for helping us .Its deafening beneficial for us.

Rozblue-kyuyrpq