Java 21 Record Patterns and Pattern Matching | Making Switch Great Again

Sdílet
Vložit
  • čas přidán 22. 10. 2023
  • Java 21 was recently released with a lot of goodies now out of preview and ready to use. Unlike virtual threads, Java 21 changes related to switch statements, record patterns, record deconstruction, and pattern matching are things every developer should know now. Some of them will give you a big boost for Java code efficiency and readability, as well, so learn them now.
    I made a short video that combines a lot of improvements to switch statements in Java 21, compared to how it was originally released. I hope you like this! As always, don't be shy to leave feedback, comments, likes, or video requests as you see fit. Also, see my other Java 21 content unless you have already watched it.
    Links in the video:
    - openjdk.org/jeps/440
    - openjdk.org/jeps/441
    - openjdk.org/jeps/443

Komentáře • 9

  • @adnanmerrakchi3301
    @adnanmerrakchi3301 Před 8 měsíci +2

    one of the earliest videos about java 21 features. good job 👍

    • @DevXplaining
      @DevXplaining  Před 8 měsíci +1

      Thank you, I appreciate! I had a head start looking into these already in the earlier versions :p

  • @conceptin10minutes
    @conceptin10minutes Před 2 měsíci +1

    Very informative video. Nice one.

  • @akshaysivadas5516
    @akshaysivadas5516 Před 4 měsíci +1

    Nice explanation!

  • @tapashmajumder2377
    @tapashmajumder2377 Před 7 měsíci

    Well done. Also +1 for extolling the virtue of functional programming towards the end of your video.