Getting Started with Java 21 - JDK 21 First Look

Поділитися
Вставка
  • Опубліковано 28 вер 2024

КОМЕНТАРІ • 38

  • @kuldeepsidhu1541
    @kuldeepsidhu1541 Рік тому +2

    Thanks Dan for the quick look of JDK 21. Would like to see more deep dive videos on JEP 439 and 444.

    • @DanVega
      @DanVega  Рік тому +1

      I will be working on some content for Virtual Threads but I unfortunately don't have a ton of experience or knowledge about garbage collection. I think with ZGC it might be something you may want to run some tests on for a particular workload.

  • @ElSrJuancho
    @ElSrJuancho Рік тому +1

    I'm hyped because it is a long term version.

  • @rajneeshsingh7818
    @rajneeshsingh7818 Рік тому +2

    Virtual Threads is mine fav 😊

    • @DanVega
      @DanVega  Рік тому

      Same! I love it because for most apps it's very little code change.

  • @eugeniu.
    @eugeniu. Рік тому +3

    "A Java version between 8 and 20 is required to execute Gradle. Java 21 and later versions are not yet supported." 😢

    • @DanVega
      @DanVega  Рік тому

      I know but I'm sure it will be available soon.

    • @kensaitakeso
      @kensaitakeso Рік тому +1

      @@DanVega most frustrating thing there is no anonymous classes support in IDEA. and even IDEA EAP is not released yet :(

    • @DanVega
      @DanVega  Рік тому

      @@kensaitakesoIt will come 🤷‍♂

  • @aladeli
    @aladeli Рік тому +6

    My favorite new features are: virtual threads and record pattern matching

    • @DanVega
      @DanVega  Рік тому +2

      Record Pattern Matching is so nice!

  • @coderlady_
    @coderlady_ 11 місяців тому

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

  • @Anbu_Sampath
    @Anbu_Sampath Рік тому +2

    3:30 JEP means JDK enhancement proposal.

    • @DanVega
      @DanVega  Рік тому +1

      I said the wrong thing 2x today, don't know what's wrong with me haha Thank you for catching that.

    • @Anbu_Sampath
      @Anbu_Sampath Рік тому +2

      @@DanVega I say the same many times.

  • @JamesStansell
    @JamesStansell Рік тому

    I am confused to see --version (two dashes) work for you. I always used to need to use a single dash so I wonder if that is a change that I haven't heard about.

    • @DanVega
      @DanVega  Рік тому +2

      I wish every command line tool would get together and come up with a plan, I never know which one to use for which sdk, tool, etc... 🤷‍♂️

  • @alimrad7760
    @alimrad7760 Рік тому

    Can you talk about Virtual thread , and make an example with spring boot

    • @DanVega
      @DanVega  Рік тому

      I will be working on that for when 3.2 comes out in November!

  • @joachimdietl6737
    @joachimdietl6737 Рік тому

    I will try sdkman

    • @DanVega
      @DanVega  Рік тому +1

      It is a great tool

    • @joachimdietl6737
      @joachimdietl6737 Рік тому

      @@DanVega i was too quick. i am run windows at work

  • @pawsdev
    @pawsdev 11 місяців тому

    another good questin - when they will meca normal docs site like Kotlin, Python, JS has, normal beatiful docs site with all features and examples, not this ugly javadocs

  • @vukotici32
    @vukotici32 Рік тому +1

    Unnamed variables not working with lambdas
    Optional.of("").ifPresent(_ -> {
    throw new RuntimeException("shold not exits");
    });
    Caused by: java.lang.ClassFormatError: Illegal field name ""
    @Dan Vega can you confirm

    • @DanVega
      @DanVega  Рік тому +1

      I'm seeing the same issue.

  • @shredsimpson
    @shredsimpson 6 годин тому

    Can I run this on an ARM PC?

  • @theWorldOfIss
    @theWorldOfIss Рік тому +1

    Sir do a video hands on practical with java21

  • @yutoobe123
    @yutoobe123 Рік тому +2

    Relaunch your Chrome! You miss on security patches.

    • @DanVega
      @DanVega  Рік тому

      Good call, thank you!

  • @paragkothari3215
    @paragkothari3215 Рік тому +1

    Hi, I will be completing my Bachelor's in 2024 so I am thinking to persue for Masters so my skills sets are like, core Java, Jakarta EE (tutorials available on yt, don't have much deep knowledge), will start spring this month. So like which side I should go cloud/databases means those traditional MS degrees with CS or those courses that are for AI. Like I think to be a SDE for few year then take a jump to may be architect or like those principal dudes but on the side ways that python fears me with AI eating high paying jobs in future... I don't have much knowledge about other ways after Java in the industry. Please guide me and help me how to learn and grow in this industry. We are already connected on LinkedIn, so let's meet there!

    • @DanVega
      @DanVega  Рік тому +1

      I think when you're new and aren't sure what to pursue you need to try a few different things and figure out what interests you. I always find that I'm excited about work when I am working with things that I'm excited about. I hope that helps and best of luck with everything.

  • @happydev512
    @happydev512 Рік тому +1

    Hi Dan, what is your vscode theme in this video?, this look really nice.

  • @QingtianWang
    @QingtianWang Рік тому

    For Spring boot webflux app running on earlier jdk version, how to use Java 21 Virtual thread? Or is there any point of using Virtual thread in netty/webflux based app?

  • @JaimeReyCasadoMonokepos
    @JaimeReyCasadoMonokepos Рік тому +1

    love these quick tips!!!

    • @DanVega
      @DanVega  Рік тому

      Glad you like them!

  • @alexanderruchkov7629
    @alexanderruchkov7629 Рік тому

    Finally a proper string interpolation? Neat.