Comments on: Java 22 Features (with Examples) https://www.happycoders.eu/java/java-22-features/ Tue, 06 May 2025 15:50:42 +0000 hourly 1 By: Shahzad Iqbal https://www.happycoders.eu/java/java-22-features/#comment-25305 Tue, 09 Apr 2024 11:08:06 +0000 https://www.happycoders.eu/?p=39210#comment-25305 In reply to Sven Woltmann.

HI Sven Woltmann

Thank you so much for the detail & In-depth Explanation as usual

Much Appreciated !!!

Warm Regards

]]>
By: Sven Woltmann https://www.happycoders.eu/java/java-22-features/#comment-24954 Sat, 30 Mar 2024 05:55:22 +0000 https://www.happycoders.eu/?p=39210#comment-24954 In reply to mike.

Summarizing the content of the new features is exactly what I am trying to do here. I am only providing the links to the JEPs for the sake of completeness.

The only thing I have not described in detail is the Class File API, which application programmers are very unlikely to come into contact with.

Is there anything else that I have not described in enough detail for your taste?

]]>
By: mike https://www.happycoders.eu/java/java-22-features/#comment-24946 Sat, 30 Mar 2024 02:17:16 +0000 https://www.happycoders.eu/?p=39210#comment-24946 Folks, sorry for being sincere, but all these references to JEPs are just useless. The reader wants a short but complete description of the solution, something that JEPs never provide. JEPs are about Oracle going from a demand to a problem and then to a solution. Not much people need all that, once the feature is released, the rest is already the history.

So if you say "read this, then read the JEP", your text is meaningless, the reader still has to read the JEP.

]]>
By: Sven Woltmann https://www.happycoders.eu/java/java-22-features/#comment-24830 Tue, 26 Mar 2024 08:02:17 +0000 https://www.happycoders.eu/?p=39210#comment-24830 In reply to S. Becher.

Hi,

you're right, null-safe operators can help write more concise code. They also exist in JVM-based languages like Kotlin and Groovy.

In Java, you can do something similar with `Optional` but that's much more verbose.

Best wishes
Sven

]]>
By: Sven Woltmann https://www.happycoders.eu/java/java-22-features/#comment-24829 Tue, 26 Mar 2024 07:55:40 +0000 https://www.happycoders.eu/?p=39210#comment-24829 In reply to Shahzad Iqbal.

Hello Shahzad,

At the moment, AIs are far from solving complex problems like the ones we solve as programmers. At the moment, I see AI more as a very powerful code completion tool.

Not even AI experts can say when this will change. Estimates of when AI will be truly intelligent range from 50 to 500 years from now (source: "Life 3.0").

So even if the most optimistic AI experts are right, programmers will still be sought-after experts for many decades to come.

Best wishes,
Sven

]]>
By: Shahzad Iqbal https://www.happycoders.eu/java/java-22-features/#comment-24691 Wed, 20 Mar 2024 11:07:18 +0000 https://www.happycoders.eu/?p=39210#comment-24691 Hi Sven Woltmann

Hope this comments find you Well!!!

I have been reading your Java articles. I found them very Practical & In-Depth.

I got one question with respect to AI or Gen AI. As you know, AI is taking over all the coding & other stuff. Now, Devin (AI based Software Engineer) is here to work.

As you are a Veteran Java Developer, How you see this Advancement in context of a Software Developer. I mean is it still good enough to Learn Programming Languages when we can create a program with a prompt

Kind Regards

]]>
By: S. Becher https://www.happycoders.eu/java/java-22-features/#comment-22948 Mon, 15 Jan 2024 16:59:49 +0000 https://www.happycoders.eu/?p=39210#comment-22948 Thank you for illustrating these new features with lots of examples!
The instant cast with instanceof that came with Java 17 made code significantly shorter and improved readability.
I learned that C# has a great way of getting rid of these if(x!=null) { x.doSomething(); } blocks by simply stating x?.doSomething();
They call it Null-Conditional Invocation Operator and it would be great if Java had it, too.

]]>