Java 21 in Two Minutes... more or less

Sdílet
Vložit
  • čas přidán 17. 09. 2023
  • Java 21 will be released this week. Let's take a quick look at the key features arriving in this release in two minutes... more or less.
    More info ➱ inside.java
    Tags: #Java #OpenJDK #Java21 #JDK21
  • Věda a technologie

Komentáře • 46

  • @Devertelo
    @Devertelo Před 10 měsíci +37

    Excited for Virtual Threads

    • @billykorando6820
      @billykorando6820 Před 10 měsíci +3

      Me too! 🧵

    • @Mohamedrasvi
      @Mohamedrasvi Před 10 měsíci +4

      Me too..I am one step away from changing java version from rc to 21.

    • @motionattached
      @motionattached Před měsícem

      Among Reactive programming, asynchronous coding , or virtual thread way, they never specify which way to go in terms of performance measure.

  • @BroccoliRocks
    @BroccoliRocks Před 10 měsíci +26

    I like the way this video was done.
    It is best to start with a short overview, like this video and then go on to progressively more in depth videos depending on viewer interest.

  • @chaoslab
    @chaoslab Před 10 měsíci

    Thanks for the update.🥰

  • @manizaeim
    @manizaeim Před 10 měsíci +7

    I am extremely excited about jdk 21

  • @yash1152
    @yash1152 Před 9 měsíci

    1:44 JEP String template
    1:46 JEP 442 FFI Foreign Fxn Interface
    niiiiice (:

  • @MrAikien
    @MrAikien Před 10 měsíci

    Awesome 👍

  • @csm2526
    @csm2526 Před 9 měsíci

    That is all ok but can I foretell the execution time of a program without executing it?

  • @mohsenzamani6000
    @mohsenzamani6000 Před 10 měsíci +1

    Thanks

  • @shubhammanecr7
    @shubhammanecr7 Před 10 měsíci +2

    String templates🔥

  • @BlueIsLeet
    @BlueIsLeet Před 10 měsíci +4

    1:43 I wish they would have gone the Kotlin route of string templates. It will definitely take some adjusting to get used to the Java way, when released.

    • @maorhamami8106
      @maorhamami8106 Před 10 měsíci

      simple - just keep using kotlin as syntatic sugar. kotlin take advantage of all of those new jvm features so any update to the jdk is awesome :)

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

    Is virtual threads Java's equivalent for Kotlin Coroutines?

  • @samacharam8324
    @samacharam8324 Před 10 měsíci +1

    I love java

  • @b0roovka
    @b0roovka Před 10 měsíci +2

    Why a mug if there's no coffee in it? Just kidding... really nice video. Keep up the good work.

  • @mangos1346
    @mangos1346 Před 10 měsíci

    Does switch need yield to be used as an expression?

    • @billykorando6820
      @billykorando6820 Před 10 měsíci

      Hmmm... a bit to unpack here...
      yield is used for a multi-line case for a switch expression using the -> syntax, or any switch case using : syntax.
      However it's a common misconception that all switches using -> are expressions, they can also be statements (they don't yield value), in which case you wouldn't use yield. They also don't need to be exhaustive (expression must be exhaustive).
      However again, if you are using pattern matching, in either a expression or statement (with -> or : syntax), it does need to be exhaustive.

  • @coderlady_
    @coderlady_ Před 9 měsíci

    If I were to start a spring boot project from scrach, is it better of using java 21?

    • @user-ew5mc1nm2d
      @user-ew5mc1nm2d Před 8 měsíci

      from job point of view many companies are still at java 8 or 11

  • @Dabayare
    @Dabayare Před 10 měsíci

    How is this going to affect Android development?

  • @AbdullahAlMamun-fh9gs
    @AbdullahAlMamun-fh9gs Před 10 měsíci +12

    May be it will be better to use ${title} rather than \{title} because every developer is familiar with ${title}. Thanks.

    • @DinMamma002
      @DinMamma002 Před 10 měsíci

      Even better if you could decide that yourself in StringTemplateProcessor!

    • @zeroanyway
      @zeroanyway Před 10 měsíci +11

      No, not better. jep describes the reasons.

    • @billykorando6820
      @billykorando6820 Před 10 měsíci +16

      The \{title} is used because it's invalid syntax when used in a String and it would be a way for the compiler to know what is a normal String and what is a String template.
      Because of the existing base of Java code, making the switch to use ${} would cause Java users A LOT of pain. Far more than it would be conceivably be worth than the relatively low cost of learning that \{} is used in Java instead of ${}.

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

    Bye bye public static void main

  • @hayrullahyasar
    @hayrullahyasar Před 10 měsíci +2

    Haaapy coding ☺️

  • @jabuci
    @jabuci Před 10 měsíci

    I was excited to see standalone functions (JEP 445) in Java 21 but it's still in preview. What a shame!

  • @LeotrimVojvoda
    @LeotrimVojvoda Před 10 měsíci +1

    Please tell us next time that your cup is empty

  • @yoapps137
    @yoapps137 Před 10 měsíci

    They better have some better examples for threads unlike the way they screwed up the Executer service examples

  • @122mlb
    @122mlb Před 10 měsíci

    ☕☕☕☕☕

  • @jagadeeshchirasani
    @jagadeeshchirasani Před 10 měsíci

    earlier they would have called this Java 5.6.823 release. Not any more 😢

  • @gDotTheGod
    @gDotTheGod Před 10 měsíci +2

    They're just watching what c# is doing at this point

    • @josealonso7321
      @josealonso7321 Před 10 měsíci +1

      I think it's Scala or Kotlin what they are watching.

    • @stevefan8283
      @stevefan8283 Před 10 měsíci

      and golang. virtual thread is literally copied from goroutine

    • @silentprotagonist3786
      @silentprotagonist3786 Před 4 měsíci

      Is it bad though to incorporate features from other languages?

  • @kahnfatman
    @kahnfatman Před 10 měsíci

    The new features in Java do not make me vomit like those in C#

  • @nixoncode
    @nixoncode Před 10 měsíci

    please copy kotlin "just the good parts", am not going to switch languages again

  • @gofudgeyourselves9024
    @gofudgeyourselves9024 Před 10 měsíci +3

    cup is empty

  • @MerveSoftware
    @MerveSoftware Před 10 měsíci +3

    java excites me more than ever ☕️🫶🏻🥹