New Java Version 22 - The 3 Best New Features You'll ACTUALLY Use

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.พ. 2025

ความคิดเห็น • 406

  • @MelHaynesJr
    @MelHaynesJr 9 หลายเดือนก่อน +257

    Java is older than many people using it, and it's amazing we are just now getting this String feature.

    • @adiveler
      @adiveler 9 หลายเดือนก่อน +29

      Yeah!
      C#, Python, and JS had this for ages!

    • @JorgetePanete
      @JorgetePanete 9 หลายเดือนก่อน +15

      Not yet, they'll be iterating on it and is now removed.

    • @sale50off
      @sale50off 9 หลายเดือนก่อน +9

      I think java is now realizing that it will loose it's charm for new gen

    • @allwoundup3574
      @allwoundup3574 9 หลายเดือนก่อน

      Because java is trash and was developed by a kiddie diddler

    • @noJobProgrammer
      @noJobProgrammer 9 หลายเดือนก่อน +5

      @@adiveler C# is just a copy of Java, there is nothing special in it

  • @terrificfrogg8377
    @terrificfrogg8377 9 หลายเดือนก่อน +225

    The string template is amazing but having to begin with STR to make it work is just so Java

    • @CodingWithJohn
      @CodingWithJohn  9 หลายเดือนก่อน +71

      I think it's technically needed for backward compatibility, since without it if some string literal happens to contain \{something}, it would break when they upgrade the Java version.

    • @PimPumSObaka
      @PimPumSObaka 9 หลายเดือนก่อน +19

      +++ This whole feature literally screams JAVA lol

    • @sstrenn
      @sstrenn 9 หลายเดือนก่อน +9

      Do you know why they couldn’t just put an f in front of the string, like python, to indicate a formatted string to the compiler?

    • @DinMamma002
      @DinMamma002 9 หลายเดือนก่อน +8

      @@CodingWithJohn How is it needed for backward compatibility? "\{" is not allowed by the compiler afaik.

    • @havlli7544
      @havlli7544 9 หลายเดือนก่อน +18

      @@CodingWithJohn It is a design decision as well, from what I could understand from their latest talks about these new features the reason is to give developers the ability to create their custom template processors that can have additional logic, they gave the example of creating a custom SQL template processor that would have sanitizing included in the template processor logic itself so you could just call SQL."query with parameters" in the database layer and not to worry about sanitizing because that will be centralized in the template processor itself. You could use it to adhere to formatting standards for the queries and greatly reduce boilerplate code. There are more use cases for sure but I cant come up with any from the top of my head :D

  • @TheMoviemaker98
    @TheMoviemaker98 5 หลายเดือนก่อน +14

    Thanks for the tip! Told grandma about Java's new unnamed variables feature and she's finally considering upgrading from Java 8, her exact words were "About damn time."

  • @more_than_just_sentient
    @more_than_just_sentient 2 หลายเดือนก่อน +3

    Java 23 is out, and we would love to have John make a video about it !

  • @MrXperx
    @MrXperx 9 หลายเดือนก่อน +32

    I came from a JS background to a Java project and the lack of string templating drove me nuts. I started to use String.format which isn't that bad.

    • @YouHaveTrouble
      @YouHaveTrouble 9 หลายเดือนก่อน +10

      in java 17 and up you can do "Some random string with %s format".formatted("special"); which is more convenient imo

    • @MrXperx
      @MrXperx 9 หลายเดือนก่อน

      @@YouHaveTrouble thanks. I'll try it.

  • @LittleEngineCan
    @LittleEngineCan 6 หลายเดือนก่อน +1

    Great to see you back! Like the new format and humor. Any updates planned for your bootcamp course? Would be great to see new modules added, or even a new advanced ‘part 2’ course

  • @Kiyuja
    @Kiyuja 9 หลายเดือนก่อน +23

    String templates sounds good but it needs a little work I feel. This is the same concept as string interpolation in C# and its a little more friendly, you just add a $ in front of a string and then use the same braces as with the preview here like: $"part1 {insert} part2". Its quick and easy to use. The "_" is also a thing called disposables I believe and it can be really useful. I am happy to see Java catching up a little and hopefully they work on asynchronous execution in the future.

    • @nakarukatoshi
      @nakarukatoshi 8 หลายเดือนก่อน

      The thing is that they decide to go with processors because programmers can create their custom ones, like custom HTML, YAML, JSON, SQL, ... processors that will sanitaze the variables
      I think some frameworks like Hibernate will implement different SQL sanitizer processors, and Jackson will do JSON and YAML processors for example

    • @mukynas
      @mukynas 7 หลายเดือนก่อน

      Don't we already have string format? You just have to add all the variables in the correct order at the end. My first language was Python and string templates looks very good and comfortable

    • @Kiyuja
      @Kiyuja 7 หลายเดือนก่อน

      @@mukynas yes, Java does provide formatting for Strings. However this is about concatenation. Oftentimes in programming you just quickly wanna combine information, like in error messages. This should be as friendly and quick as possible. String Interpolation lets you do just that. Imagine you have a variable x. In C# you can write $"error occured while parsing {x}". Because you marked the string with a "$" C# knows curly braces will reference data and not be characters and inserts the value in the string. Javas proposal aims for the same functionality but it seems quiet cumbersome...

    • @thebuizelclub
      @thebuizelclub 7 หลายเดือนก่อน

      Why not just do both then. $ for the default and STL for custom implementation
      .@@nakarukatoshi

    • @gamingzonezone1
      @gamingzonezone1 2 หลายเดือนก่อน

      Hi bro can we be friends

  • @Mig440
    @Mig440 9 หลายเดือนก่อน +42

    Unfortunately, the string templates feature has been removed for now from std. Lib since they want iterate on the design at bit further before releasing it to the public. Just good to be aware of.

    • @terrycrews1584
      @terrycrews1584 9 หลายเดือนก่อน +3

      Dang, thought we will finally get rid of that pain in the ass of concatenation! 😂

    • @davidc_ac9377
      @davidc_ac9377 9 หลายเดือนก่อน +1

      It has always been experimental in v21 and v22. It was not removed, because it was never standard.

    • @Mig440
      @Mig440 9 หลายเดือนก่อน

      @@davidc_ac9377 true, but people might still think they can experiment with it on their own in jdk 23 and that will currently be impossible 😊

  • @paulthomas1052
    @paulthomas1052 9 หลายเดือนก่อน +6

    Thanks for the great intro to Java 22. Look forward to more !

  • @sanin3213
    @sanin3213 9 หลายเดือนก่อน +197

    Return of the GOAT

    • @Whizyrel
      @Whizyrel 8 หลายเดือนก่อน

      😂

    • @asitabhpaul
      @asitabhpaul 4 หลายเดือนก่อน

      An underscore in Java is elevated but not sports 😅

  • @VuLinhAssassin
    @VuLinhAssassin 9 หลายเดือนก่อน +3

    Hi Jon, your video was amazing.
    Btw, is there any remote position in your company?

  • @rubens_cube
    @rubens_cube 9 หลายเดือนก่อน +5

    Hey John, another great video, thank you! I was wondering if you know something about Java Serialization? It is a topic I would love to see in a video, because it is very useful, but it feels like magic to me. I would love to see a good explanation of it so I know how to use it properly!

    • @alexandersagen3753
      @alexandersagen3753 8 หลายเดือนก่อน +1

      Just a heads up, most do not recommend java serialization (Serializable and so on) as it has had so many extremely bad security vulnerabilities forever. The recommended solution is to serialize the objects to json or whatever format you prefer and use that. Many great extremely fast libraries for most if not all formats you could think of

  • @tylerzhang601
    @tylerzhang601 3 หลายเดือนก่อน +1

    LOVE YOU! YOUR VIDEOS ARE ACTUALLY SO HELPFUL

  • @antonyrichard369
    @antonyrichard369 9 หลายเดือนก่อน +9

    Not to compare as I love Java too .. but the string template feature is something .Net has implemented a few years back and Unix operating system has it way way long back ..
    I feel like Java is more moving towards like a scripting language like python or Java script and more of functional programming ofcourse

    • @alokik4923
      @alokik4923 4 หลายเดือนก่อน

      The current problem is it is always moving, I think it just shifting here and there to survive in the world of language wars. Java has been shifting it's programming style a lot lately. Which is not good

  • @anne_the_dev
    @anne_the_dev 9 หลายเดือนก่อน +4

    Hi John, I'm Anne and I have been programming for almost 5 months and I'm about to learn data structures, but I'm considering switching to js since it's really hard to do so in Java + I already know HTML and CSS so is it worth the switch? And I also get a bit overwhelmed after people talking about complex stuff, so any suggestion to avoiding that? BTW thanks for the generics tutorial it was awesome ❤
    Btw I use vs code so sorry, I can't switch to jet brains.... Yet

    • @CodingWithJohn
      @CodingWithJohn  9 หลายเดือนก่อน +4

      Ha no worries! Well I don't know if javascript is heavily used for data structures work, particularly with HTML/CSS. Together those are mostly for the front ends of websites, and not so much for data structure work behind the scenes. Between those I would stay with Java, although there are definitely other options too. The tough part will be the concepts of data structures, and probably not so much the actual language you use to implement them.
      Just get started with the simplest stuff you can understand, and work from there. Try to go step by step, implementing something very simple and let it sink in, code it yourself and mess around with it, doing a lot of testing. Then take small steps forward, making it more complex as you get more familiar.
      If you have specific topics that others might be interested in as well, let me know and you might see a video about it!

    • @anne_the_dev
      @anne_the_dev 9 หลายเดือนก่อน +1

      @@CodingWithJohn thanks you so much!!! Yeah I have a video idea: maven tutorial

    • @aravindmuthu5748
      @aravindmuthu5748 9 หลายเดือนก่อน +2

      if you know HTML and CSS, the next logical step is to learn JS without which web development is incomplete tbh. It is better to pause your Java for now, because it could get quite confusing from J to JS. Both are drastically different languages (why did they name it JAVAscript tho???) and once you try js, all the object oriented programming gets thrown out of the window, and you'll be needing to learn functional programming, which btw is waayyyyy easier than OOP approach. Once you feel like you're comfortable with it, you can decide whether to switch back, because honestly Java is mainly used in big enterprise companies and JS is used by lean and fast teams.
      So in conclusion, you either leave out web development and concentrate on Java, it has got its long term benefits or abandon Java(for now) and concentrate on JS which will speed up your programming skills itself and you can land a job quicker...

    • @ZachariBarnes
      @ZachariBarnes 9 หลายเดือนก่อน +1

      You can do data structure work in JavaScript but JavaScript doesn't have many built in data types for handling those sorts of objects and often you'll need to pull in a npm package or write your own, which will add a lot of complexity to your programs. Stick with Java or another back-end language more suited to data structure manipulation

    • @jaybee2530
      @jaybee2530 9 หลายเดือนก่อน +2

      A good possible alternative for Java would be C#. My first language was Java, and it can be a bit daunting to learn at first, but i'm very happy i stuck with it. It gives me a greater understanding of programming concepts than if i would have started to learn with Python for instance. Either way, whatever language you pick, learn the language thourough. Don't hop from one language to the other only learning a bit about each language, and don't worry about getting overwhelmed either. Programming can be difficult. So, take a breath, make a coffee, and take it one step at a time. Good luck!

  • @NBSgamesAT
    @NBSgamesAT 7 หลายเดือนก่อน

    String templating is a thing from other languges and it works qithout having to add that str thing. But it‘s still soo good that after such a long time, Java can actually use a feature from other languages that is actually super helpful, makes me have a lot less issues with Java again.

  • @Okmeis
    @Okmeis 9 หลายเดือนก่อน +4

    Thank you for keeping us up to date.

    • @rithvikburra1696
      @rithvikburra1696 5 หลายเดือนก่อน

      **Smash Like for Coding With John!!!!!**
      Coding is more than just a skill for me; it’s a passion that brings immense joy and satisfaction, particularly when shared with someone as inspiring as John. From the moment I first started coding, I knew it was something special. It was a way to bring ideas to life, solve complex problems, and create something tangible out of nothing but logic and creativity. However, the experience of coding became truly extraordinary when I began to do it alongside John.
      John’s enthusiasm for coding is contagious. His ability to break down complex problems into manageable pieces and his knack for explaining intricate concepts in simple terms have profoundly impacted my own coding journey. Every coding session with John feels like an adventure into uncharted territory. We approach challenges with curiosity and creativity, and his positive attitude makes even the most daunting bugs and errors seem like opportunities for growth.
      What sets John apart is not just his technical expertise but his genuine love for teaching and sharing knowledge. His mentorship is a blend of patience, encouragement, and insightful guidance. I have learned so much from him, not only about coding but also about problem-solving, perseverance, and the importance of a collaborative spirit. John’s ability to make coding sessions enjoyable and productive has turned what could have been a solitary task into a collaborative and enriching experience.
      Working with John has also highlighted the power of community in coding. The camaraderie we share during our sessions, the brainstorming, the laughter, and the collective triumphs when we solve a particularly tough problem-these moments have made me appreciate the value of working together. John has shown me that coding is not just about the end result but about the journey and the relationships built along the way.
      Our coding sessions often extend beyond the screen, as we discuss new technologies, share exciting ideas, and dream about future projects. These conversations inspire me to push my boundaries and explore new avenues in coding. John’s passion fuels my own, and together we drive each other to become better programmers and thinkers.
      In essence, coding with John has been an incredibly rewarding experience. It has turned a solitary pursuit into a shared passion and transformed the challenges of programming into opportunities for growth and discovery. John’s mentorship has enriched my coding journey in countless ways, and I am profoundly grateful for his guidance and companionship.
      **Smash Like for Coding With John!!!!!**

    • @gamingzonezone1
      @gamingzonezone1 2 หลายเดือนก่อน

      Hi can we be friends

  • @AnupDangi-x7q
    @AnupDangi-x7q 9 หลายเดือนก่อน +3

    Amazing i am learning dsa using Java and love to work on it further as well.

  • @PimPumSObaka
    @PimPumSObaka 9 หลายเดือนก่อน +3

    Those features are amazing, but... the '_' underscore variable discarding was in C# since 7.0 and they should definitely add more like from there :) The syntax sugar in C# makes it much much much better to use, so when java introduces something like this it interests me again in making things in Java

    • @sqlexp
      @sqlexp 9 หลายเดือนก่อน +2

      He missed the points of it, though. First, it is used to silence any "unused variable" warning (if Java has such a thing). Second, it saves the programmer from the need to come up with different distinct names for multiple unreferenced variables in the same scope.

  • @Sunnnix
    @Sunnnix 9 หลายเดือนก่อน +29

    For the third feature, I always used String.format because it's easier to read

    • @dirkniblickable
      @dirkniblickable 9 หลายเดือนก่อน

      “%s is even easier”.formatted(“This”);

    • @alexandersagen3753
      @alexandersagen3753 8 หลายเดือนก่อน +4

      Or just "my name is %s".formatted(myName)

  • @simulbista8846
    @simulbista8846 9 หลายเดือนก่อน +2

    Great to have you back.

  • @dirkniblickable
    @dirkniblickable 9 หลายเดือนก่อน +1

    In lieu of chapter markers:
    * 1:43 - Unnamed variables
    * 7:03 - Compile and execute multi-file Java programs from command line
    * 9:14 - String templating (preview only)

  • @CGDW2
    @CGDW2 9 หลายเดือนก่อน +2

    Unnamed variables I will use occasionally, but String templates are really nice.
    I do sometimes use String.format() or printf() rather than concatenation, but they still feel kinda clunky in their syntax.

    • @CodingWithJohn
      @CodingWithJohn  9 หลายเดือนก่อน +4

      Looks like it's unfortunately being removed even as a preview feature in Java 23, but hopefully to return in an even better format in a future release.

  • @imohanthony
    @imohanthony 9 หลายเดือนก่อน +1

    This video presentation was so cool am considering picking up java again.

  • @nambipugal3329
    @nambipugal3329 9 หลายเดือนก่อน +2

    Hi John, Eagerly waiting for more videos especially on Spring Security 🙃

  • @theroyaltygamer8436
    @theroyaltygamer8436 9 หลายเดือนก่อน +3

    Hey john love your content please make more videos

  • @erfan_rad
    @erfan_rad 9 หลายเดือนก่อน +1

    I'm really really happy that you are not done with TH-cam! Keep going John.❤

  • @IanMcKenzie-ff5jw
    @IanMcKenzie-ff5jw 2 หลายเดือนก่อน

    My grandma was super excited about the unreferencable variables. This made her day, so thank you.

  • @dembro27
    @dembro27 9 หลายเดือนก่อน +1

    They implemented my unreasonably favorite JavaScript feature, template literals, into Java. Finally!!!
    String.format is pretty good, though.

  • @muaazkhan6156
    @muaazkhan6156 7 หลายเดือนก่อน +1

    Please make a play list for spring boot every body needs to hear from you 🙏

  • @NadChel1
    @NadChel1 9 หลายเดือนก่อน +1

    String templating is awesome. I was hoping for something like this for a long time. Though I wonder why they didn't go with backticks like JS with its string interpolation. STR is less appealing to my eye

  • @paramdholakiya
    @paramdholakiya 9 หลายเดือนก่อน +6

    Using STR. String templates for Servlets. That's it. Thank you ORACLE gods. Writing Html in Java Servlet file has now became more easier

    • @gsilva877
      @gsilva877 9 หลายเดือนก่อน +1

      😂😂

  • @richardbrown2290
    @richardbrown2290 หลายเดือนก่อน

    Great video. I look forward to all of the Java ones. Please keep it up. Thanks Richard

  • @suikast420
    @suikast420 8 หลายเดือนก่อน

    Unnamed variables have the big advantage of heap allocation.
    The can write the result of a call to something like dev null heap.

  • @deepakpothuraju6833
    @deepakpothuraju6833 7 หลายเดือนก่อน

    Please make a series explaining the internal working of collection framework.
    Start the series with HashMap and HashSet. Then arraylist, LL etc.

  • @i_say_uhh
    @i_say_uhh 9 หลายเดือนก่อน +2

    String template looks so niceee

  • @danhoelzel5339
    @danhoelzel5339 9 หลายเดือนก่อน

    string templates was something I was wondering if Java had about 8 months ago when I started working on an android app using java. Glad it is finally a feature.

  • @vibingowsic2338
    @vibingowsic2338 9 หลายเดือนก่อน +8

    Miss your tutorial John ❤❤

    • @rithvikburra1696
      @rithvikburra1696 5 หลายเดือนก่อน

      **Smash Like for Coding With John!!!!!**
      Coding is more than just a skill for me; it’s a passion that brings immense joy and satisfaction, particularly when shared with someone as inspiring as John. From the moment I first started coding, I knew it was something special. It was a way to bring ideas to life, solve complex problems, and create something tangible out of nothing but logic and creativity. However, the experience of coding became truly extraordinary when I began to do it alongside John.
      John’s enthusiasm for coding is contagious. His ability to break down complex problems into manageable pieces and his knack for explaining intricate concepts in simple terms have profoundly impacted my own coding journey. Every coding session with John feels like an adventure into uncharted territory. We approach challenges with curiosity and creativity, and his positive attitude makes even the most daunting bugs and errors seem like opportunities for growth.
      What sets John apart is not just his technical expertise but his genuine love for teaching and sharing knowledge. His mentorship is a blend of patience, encouragement, and insightful guidance. I have learned so much from him, not only about coding but also about problem-solving, perseverance, and the importance of a collaborative spirit. John’s ability to make coding sessions enjoyable and productive has turned what could have been a solitary task into a collaborative and enriching experience.
      Working with John has also highlighted the power of community in coding. The camaraderie we share during our sessions, the brainstorming, the laughter, and the collective triumphs when we solve a particularly tough problem-these moments have made me appreciate the value of working together. John has shown me that coding is not just about the end result but about the journey and the relationships built along the way.
      Our coding sessions often extend beyond the screen, as we discuss new technologies, share exciting ideas, and dream about future projects. These conversations inspire me to push my boundaries and explore new avenues in coding. John’s passion fuels my own, and together we drive each other to become better programmers and thinkers.
      In essence, coding with John has been an incredibly rewarding experience. It has turned a solitary pursuit into a shared passion and transformed the challenges of programming into opportunities for growth and discovery. John’s mentorship has enriched my coding journey in countless ways, and I am profoundly grateful for his guidance and companionship.
      **Smash Like for Coding With John!!!!!**

  • @franlopri6279
    @franlopri6279 5 หลายเดือนก่อน

    Hi John! What is the plugin to autocomplete code? Thank you so much. Great video btw

  • @nayankumar9113
    @nayankumar9113 9 หลายเดือนก่อน +2

    welcome back champion. thank for such a great tutorials.

  • @zfazzershroudvietcynide64e58
    @zfazzershroudvietcynide64e58 8 หลายเดือนก่อน

    Please pleaseeee make a video about Comparable and Comparator coz i really like how simple and easy ur explanation is

  • @GrantSR
    @GrantSR หลายเดือนก่อน

    So, if you are going to start with the advertisement, right at the beginning, I got a question for you: Do I have to pay for each those customized IDEs separately? Or do I just buy one IDE and then just switch modes, preferably with downloadable modules like with Eclipse?

  • @coloredpinata
    @coloredpinata 3 หลายเดือนก่อน

    Hey man, your videos are absolutely the best java tutorials ever, thanks! Could you make a video (or multiple) about DSA? ;)

  • @raymondorenda7385
    @raymondorenda7385 9 หลายเดือนก่อน +5

    Good tutorial there though I rather they ought to have used $ sign instead of \ for that String variable combination. A convention in number of languages. Besides, adding \ in xml with its cousin / already in abundance will bring more confusion.

  • @amilasilva7
    @amilasilva7 9 หลายเดือนก่อน +1

    Can you make a video about : How quickly adapt to new Java features from java 8 to 11/17/21/22. (what new features we can use over legacy features.)

  • @paulmanuilenko7894
    @paulmanuilenko7894 9 หลายเดือนก่อน +1

    Thanks a lot for the overview!

  • @Unknown373d
    @Unknown373d 9 หลายเดือนก่อน +51

    best java youtuber

    • @MusabYK
      @MusabYK 9 หลายเดือนก่อน +3

      Agreed

  • @Guywiththetypewriter
    @Guywiththetypewriter 6 หลายเดือนก่อน

    Hey John, have you ever considered doing a few videos on jdbc and stuff like HikariCP?
    It seems to be a massive gap in the tutorial landscape when it comes to your level of quality.

  • @Morzelius
    @Morzelius 9 หลายเดือนก่อน +20

    I'm pretty sure they wanted to find the most uncomfortable syntax possible to do string templating. Maybe they checked how the popular languages doing that and wanted to create something that worse.

    • @manoelcamposdev
      @manoelcamposdev 9 หลายเดือนก่อน

      If it wasn’t due to the possibility to create any custom string processor you want, I would agree. But Oracle looked at other languages and included an awesome feature. For instance, you can create a JSON string processor or a SQL processor that avoids SQL injection. It’s just amazing and sometimes a simple lambda.

  • @AlfredNrejaj-pn9jd
    @AlfredNrejaj-pn9jd 28 วันที่ผ่านมา

    Hi John, could you please make a video about logging. Thanks in advance.

  • @zachariahtatman7381
    @zachariahtatman7381 9 หลายเดือนก่อน +2

    wow java finally coming out with basic features that have existed in other langiuages for years. i might actuially enjoy java in 5 years.

  • @avalagum7957
    @avalagum7957 9 หลายเดือนก่อน +1

    If you could talk about structured concurrency and stream gatherer, that's really great.

  • @MrAikien
    @MrAikien 9 หลายเดือนก่อน

    Thanks for the update 🙏. Really appreciate it 👌👍

  • @IvanPopov
    @IvanPopov 5 หลายเดือนก่อน

    Thank you for the elaborate, extensive, and down-to-earth explanations - it's a rarity nowadays but still quite invaluable to some of us.

  • @mohamedsameh3678
    @mohamedsameh3678 9 หลายเดือนก่อน

    I'm impressed by your knowledge of Java versions! Since Java 9 there have been many new features. Would it be possible to create a concise overview of the key features introduced in Java 9 through 22? This would be a valuable resource for developers, and I believe your ability to explain complex topics makes you well-suited for this task.

  • @xtunasil0
    @xtunasil0 8 หลายเดือนก่อน

    Java is finally catching up on basics features it was missing. About time!

  • @adamrigely3607
    @adamrigely3607 9 หลายเดือนก่อน +1

    Wait, you create these awesome videos AND play TBOI? Now I appreciate you even more!

  • @sale50off
    @sale50off 9 หลายเดือนก่อน +37

    Please make more videos John

    • @rithvikburra1696
      @rithvikburra1696 5 หลายเดือนก่อน

      **Smash Like for Coding With John!!!!!**
      Coding is more than just a skill for me; it’s a passion that brings immense joy and satisfaction, particularly when shared with someone as inspiring as John. From the moment I first started coding, I knew it was something special. It was a way to bring ideas to life, solve complex problems, and create something tangible out of nothing but logic and creativity. However, the experience of coding became truly extraordinary when I began to do it alongside John.
      John’s enthusiasm for coding is contagious. His ability to break down complex problems into manageable pieces and his knack for explaining intricate concepts in simple terms have profoundly impacted my own coding journey. Every coding session with John feels like an adventure into uncharted territory. We approach challenges with curiosity and creativity, and his positive attitude makes even the most daunting bugs and errors seem like opportunities for growth.
      What sets John apart is not just his technical expertise but his genuine love for teaching and sharing knowledge. His mentorship is a blend of patience, encouragement, and insightful guidance. I have learned so much from him, not only about coding but also about problem-solving, perseverance, and the importance of a collaborative spirit. John’s ability to make coding sessions enjoyable and productive has turned what could have been a solitary task into a collaborative and enriching experience.
      Working with John has also highlighted the power of community in coding. The camaraderie we share during our sessions, the brainstorming, the laughter, and the collective triumphs when we solve a particularly tough problem-these moments have made me appreciate the value of working together. John has shown me that coding is not just about the end result but about the journey and the relationships built along the way.
      Our coding sessions often extend beyond the screen, as we discuss new technologies, share exciting ideas, and dream about future projects. These conversations inspire me to push my boundaries and explore new avenues in coding. John’s passion fuels my own, and together we drive each other to become better programmers and thinkers.
      In essence, coding with John has been an incredibly rewarding experience. It has turned a solitary pursuit into a shared passion and transformed the challenges of programming into opportunities for growth and discovery. John’s mentorship has enriched my coding journey in countless ways, and I am profoundly grateful for his guidance and companionship.
      **Smash Like for Coding With John!!!!!**

  • @flaviu-vanca
    @flaviu-vanca 9 หลายเดือนก่อน

    Great video John. The new String concatenation is a game changer. The blank _ is a bit silly, but I welcome it, might be useful occasionally.

    • @alandoe6622
      @alandoe6622 9 หลายเดือนก่อน +3

      If you come from python, you know it's useful.

    • @flaviu-vanca
      @flaviu-vanca 9 หลายเดือนก่อน

      ​@alandoe6622, I'm planning to learn Python in the future so it's great to gain that extra knowledge.

  • @omitobisam
    @omitobisam 9 หลายเดือนก่อน

    Unnamed variable seem to be idea of matching a pattern. If it does not match any pattern, then you can use an underscore. Example in F#.

  • @kalvakolusubhash8832
    @kalvakolusubhash8832 8 หลายเดือนก่อน

    Please make a video on how to load all the project classes during runtime.

  • @girishvm2335
    @girishvm2335 9 หลายเดือนก่อน +1

    But for the exception object we may use it
    For ex (Exception e)
    {
    logger.erro(e.getMessage)
    }
    But if you refer unnamed variable how do you get message or stack trace out of it?
    Can you suggest ?

    • @josueramirez7247
      @josueramirez7247 9 หลายเดือนก่อน

      In that case, then you shouldn’t use the underscore (blank) name for your variable.

  • @yavgel
    @yavgel 5 หลายเดือนก่อน +1

    could you please make a video about Dependency Injection!? please!

  • @loic.bertrand
    @loic.bertrand 2 หลายเดือนก่อน

    String Templates (which was a preview feature) have been removed in JDK 23. They got feedback and saw that it wasn't really great to work with. There will probably be a new proposal without "String Template Processors", because we can simply use methods to process a String Template and it's more composable this way.

  • @tanujabhatnagar
    @tanujabhatnagar 8 หลายเดือนก่อน

    Could you please create a video explaining double locks, volatile and synchronized keyword? It would be really helpful 🙏🏻

  • @camcommute
    @camcommute 9 หลายเดือนก่อน

    C# has the underscore. it's useful in a try catch when u don't want to do anything with the exception

  • @ricardoid
    @ricardoid 9 หลายเดือนก่อน +1

    Great video! every Java improvement Scala has it many yeas before 😮

    • @lionelsimon7613
      @lionelsimon7613 8 หลายเดือนก่อน

      Yes, they just are following that path after so many years. Poor java . However, Scala devolpers are taking now new languages, such as rust, Haskell.

  • @cesarlopes-h1m
    @cesarlopes-h1m 7 หลายเดือนก่อน

    John you are a person that has his concepts in Java solid (Im reading a nice book now called Weld I find there messy explanations of POJOs and Java Beans.) Could you tell me what are books on Java and Java EE that according to you are really good references?

  • @SimonWandera-n1h
    @SimonWandera-n1h 7 หลายเดือนก่อน

    Hi John, I am thinking of doing 1Z0-819 or 1Z0-809. Which one is more relevant?

  • @deepakyadav-ny2cj
    @deepakyadav-ny2cj 9 หลายเดือนก่อน +1

    Please increase the frequency of you appearing with new video, we really wait eagerly.

  • @fizzcochito
    @fizzcochito 9 หลายเดือนก่อน +1

    Looking forward to using this once we upgrade from Java 8 in 23 years

  • @eric55099
    @eric55099 5 หลายเดือนก่อน

    Please can u do a playlist on Data Structure and Algorihm
    You explain better than anyone

  • @ZachariBarnes
    @ZachariBarnes 9 หลายเดือนก่อน +11

    Grats on the sponsor!

  • @MichaelH-w6e
    @MichaelH-w6e 5 หลายเดือนก่อน

    Hi John, do you still have future videos planned for your online course?

  • @markplay729
    @markplay729 3 หลายเดือนก่อน +1

    Can you please explain graphs, trees, nodes in java thnx

  • @reyhanau50
    @reyhanau50 9 หลายเดือนก่อน +1

    Hi John, will you start to teach us about Spring Boot material someday?

  • @tanujabhatnagar
    @tanujabhatnagar 8 หลายเดือนก่อน

    Could you please explain different types of design patterns used in java as well? and when to use which one?

    • @gamingzonezone1
      @gamingzonezone1 2 หลายเดือนก่อน

      Hi tanuja can we be friends

  • @theminingpro
    @theminingpro 9 หลายเดือนก่อน

    That in string variable thing is a game changer for sure

  • @gamehacker5692
    @gamehacker5692 9 หลายเดือนก่อน +1

    Can we get a video on the Java turtle functionality, I know how to use it in python but can’t get the syntax fully in Java

  • @harshitkrvishwakarma3602
    @harshitkrvishwakarma3602 9 หลายเดือนก่อน +1

    Java is becoming javascript but with types. I love it.

  • @ilyriadjaajdairyli6352
    @ilyriadjaajdairyli6352 9 หลายเดือนก่อน +1

    Thank you its very clear explained

  • @johnmckown1267
    @johnmckown1267 9 หลายเดือนก่อน

    The _ and string interpolation (f strings) are in Python too.

  • @LucaCattaneo-xz5mu
    @LucaCattaneo-xz5mu 9 หลายเดือนก่อน

    hey John! i know this might be a strange request but i was wondering, could you please do a tutorial on RMI java server and RMI java client? i know, it's an outdated function but i went throw many tutorial and forum to find good explained code, but none of them was accurate, expetially when your code create thousand of error even in the compiling phase. if you decide to do it, could you please also cover all the commn errors and mistakes that could generate? thank you.

  • @ChemicalVapors
    @ChemicalVapors 8 หลายเดือนก่อน

    The quick fix called it "STR Processor". Are there other processors? What can we do with them?

  • @АртемФедоров-ю7б
    @АртемФедоров-ю7б 9 หลายเดือนก่อน

    regarding strings template, why just don't use f as a prefix to the string like in python? String message = f"My message is {msg}", isn't it easier? Better implement a wheel rather than look up for other approaches

  • @NightShogun
    @NightShogun 8 หลายเดือนก่อน

    John could you talk about Java Modules please, i appreciate your content

  • @fernandosantiagovillegas6556
    @fernandosantiagovillegas6556 9 หลายเดือนก่อน

    The first feature is the same or similar as python, so i think knowing how underscore works in java would help for understanding how it works un java. The string template also seems similar as the fstrings in python,

  • @kultomten
    @kultomten 2 หลายเดือนก่อน

    Why concatenate when you can use .formatted() on a string?

  • @lakrinmex8132
    @lakrinmex8132 8 หลายเดือนก่อน

    I didn't know about triple quote making it multiline string. I just tried and it worked in the java version I currently use.
    Unrealted: Why doesn't my intellij(community edition) suggest whole lines like yours does?
    like when you typed Cat myCat it showed "= new MyCat(); tab to continue"

  • @younesdamous
    @younesdamous 9 หลายเดือนก่อน

    I watched a lot of your videos and I benefited a lot from you in Java... I am from Algeria... Thank you and I hope we meet one day

  • @fifofuko1864
    @fifofuko1864 9 หลายเดือนก่อน

    Maybe you might want to use unnamed references for constructor functions? Idk if this has any use.

  • @aethro4375
    @aethro4375 8 หลายเดือนก่อน +2

    So basically what C# has since a long time ago

  • @cankoban
    @cankoban 2 หลายเดือนก่อน

    This was great. Looking forward to New Java Version 23. I am too busy to check official page to learn about it, I need to complain about Java on Reddit.

  • @algavone
    @algavone 2 หลายเดือนก่อน

    Hey John! I and I'm sure many others would be greatly obliged if you made a video covering Regex in Java. :)

  • @leogcavalli
    @leogcavalli 9 หลายเดือนก่อน +1

    Great content, as always

  • @FahadAyaz
    @FahadAyaz 9 หลายเดือนก่อน +13

    It's nice that Java devs are able to use these now. I feel blessed that we've not had to put up with these (and have a lot more loveliness) in Kotlin for years now. Going back to Java definitely feels like a step backwards

  • @kundanbalse92
    @kundanbalse92 5 หลายเดือนก่อน

    I Have been following your channel for few months now, why don't you make a series dedicated to interview cracking strategies

  • @delsix1222
    @delsix1222 9 หลายเดือนก่อน

    what's the reason for using String.format() now that string template exists?

  • @tigerstyping
    @tigerstyping 9 หลายเดือนก่อน

    Great video, but I'd make sure to caution against using template strings for HTML! If you're processing user input, you should always sanitize the values before putting them in your HTML, preferably using a trusted library.

  • @nithinvijay19
    @nithinvijay19 8 หลายเดือนก่อน

    Worthful content from you as always!