Java 22 New Features | What's coming up in future of Java?

Sdílet
Vložit
  • čas přidán 14. 01. 2024
  • Hi and welcome back to DevXplaining channel! It's time to start this year by learning and talking tech again. For this first video, we'll stick to basics. Java 21 was recently released in 2023, but now we have bold new year 2024, and upcoming Java 22, that will build on the previous version, and add a bunch of new features.
    Join me for this video, where I'll comment through all the new things coming up, and show you a few. While Java 22 is not a long term support version, easiest way to keep up to date with Java is to digest the new features in small batches, and keep an eye on what's coming up.
    As always, if you like the video, click the like button, leave comments, questions, or perhaps even subscribe to my channel for more content like this.
    Read more from:
    - openjdk.org/projects/jdk/22/
    - • Java 21 Virtual Thread... (Java 21 virtual threads and structured concurrency)
    - • Java 19 And Beyond | N... (One million threads)

Komentáře • 19

  • @davidgrajalesmirage
    @davidgrajalesmirage Před 5 měsíci +3

    As someone coding in java for almost 2 years, this is actually very exciting. What is not needed/used just disrupt.

    • @DevXplaining
      @DevXplaining  Před 5 měsíci +2

      I like that Java keeps updating, outdated features are deprecated, then removed. New features are brought in constantly. Using Java 21 and beyond feels so fresh.

    • @davidgrajalesmirage
      @davidgrajalesmirage Před 5 měsíci +1

      @@DevXplaining yeah, coding in java 1.4 vs Java 21 feels like almost totally different languages. I am happy now I can make simple program/scripts in Java and throw away python almost entirely. Looking how to use GraalVM to use Java to automatize small Scripting fit tasks without the overhead of the JVM. The best time to be a Java coder is now.

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

    JEP 463 should have been since more than 10 years ago on Java! As someone who learned Java in 2001 this JEP would have been a godsend at that time. I always have said that Java is not a beginner friendly programming language

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

      Yes, agreed. I was teaching Java for a decade and that getting started part for new coders is tough with it. Once you push through it does get better. So I'm very happy to see they finally added beginner-friendly features, even though old hands really don't need all that :)
      But much easier to learn it, teach it, do something small just for fun.

  • @joalafreak1588
    @joalafreak1588 Před 3 měsíci +1

    Hi, am new to Java can you make a viode about what type of project should I create to practice Spring boot framework.

    • @DevXplaining
      @DevXplaining  Před 3 měsíci

      Sure, I've done few in the past on my channel, but of course might be nice to redo since both Java and Spring have gone a long way since then.
      I've mostly been showing Spring Boot + Web module, to create RESTful APIs, and what you want to do behind that is of course up to you, but most often it includes database.
      But, while waiting for new video, these should still work to give you the big picture:
      - czcams.com/video/xxRw0XIoKvA/video.html
      - czcams.com/video/KsWg6nPVwsg/video.html
      - czcams.com/video/Sg1b0sugbtg/video.html
      Thanks for tuning to my channel!

  • @seshasaivenkat
    @seshasaivenkat Před 6 měsíci +1

    fantastic

  • @TheRealMangoDev
    @TheRealMangoDev Před 3 měsíci +1

    JNI is cool. I once tried to build an ide with it: but i failed bc i was on mac and for some stupid reason java runs JNI on a separate thread: and as you know, mac only wants guis fron the main thread… and my structure would’ve been this: JNI - will handle GUI, and java - would handle the actual syntax highlighting, and all at junk

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

      Haha, you know, I coded myself an IDE too, when starting to learn Java Swing. It never got full featured enough, but it was fun to build it from scratch and then use it to develop it further. Also made me appreciate people who work on modern IDEs a lot more - there's a boatload of details to solve and take care of to make them work beautifully.

    • @TheRealMangoDev
      @TheRealMangoDev Před 3 měsíci

      @@DevXplaining i tried to do it with imgui, and failed bc macos is stupid :( and i never even figured out how to make it so JNI executes on the main thread. Altho if java adds a feature like this then ill probably try doing it all over again

  • @baby12173
    @baby12173 Před 6 měsíci +2

    hi it seem like java shorten their code in java 21 . That is very nice easy to use.

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

      Yeah, Java staying relevant in 2024 :)

  • @ArcWeltraumpert
    @ArcWeltraumpert Před 3 měsíci +1

    i subs you