Java 22 is FINALLY HERE! And I love it!

Поділитися
Вставка
  • Опубліковано 11 чер 2024
  • Discover the latest features and improvements in Java Development Kit (JDK) 22! In this short video, we'll cover 4 out of 12 most interesting new updates and enhancements to exciting innovations and language changes introduced in 2024. We will explore the changes in variables, Strings, Streams and Instance Main Methods! Gain a deeper understanding of the evolving world of Java technology. Whether you're a seasoned developer or just starting out, this video is an essential resource for staying up-to-date with the ever-changing landscape of Java development.
    You like my videos?
    Leave a like 👍 and Subscribe / @soitiodev
    Check out my site:
    www.soitio.com/
    Visit me live on Twitch:
    / soitio
  • Наука та технологія

КОМЕНТАРІ • 10

  • @SoitioDev
    @SoitioDev  2 місяці тому +4

    What is Your favorite feature? For me String Templates I think 🔥

  • @grn-xx
    @grn-xx Місяць тому +2

    I love java :D

    • @SoitioDev
      @SoitioDev  Місяць тому +2

      Me too ;D I tried a lot of different languages and Java is by far my favorite 🔥

    • @davidwaziri333
      @davidwaziri333 Місяць тому +2

      ​SoitioDev same with me, Java is my best

  • @commenter260
    @commenter260 5 днів тому +1

    for the main method instead of using public static void main(String[]args) now we can just say void main() right ?

    • @SoitioDev
      @SoitioDev  5 днів тому

      Yeah that's right, since Java 22 you can just say void main()
      But it is a preview feature, you have to enable it with --enable-preview flag, I am not sure when it will be added normally, maybe in Java 23 or Java 25 LTS

    • @commenter260
      @commenter260 5 днів тому

      @@SoitioDevI am using intellije do you know how can I enable that feature?

    • @SoitioDev
      @SoitioDev  5 днів тому

      In Intellij it is a little different, first You are required to have a latest Intellij version. Next go into File > Project Structure > Project and choose SDK 22 and keep language level 'SDK default'
      If you already had some run configurations, go into Edit configurations and check if SDK is set to proper one
      This will enable preview features without any additional flags