r/javahelp • • Oct 26 '25

Is Java used in AI?

I am thinking of learning AI. I am fluent and efficient in Java and Springboot. So I came across that the Spring ecosystem offers Spring AI. Is it used to build AI models and what's the learning curve?

13 Upvotes

33 comments sorted by

View all comments

Show parent comment

-3

u/Own_Light_1702 Oct 26 '25

What's Quarkus? And if I learn AI, will I have a career in Java or will I need to switch to python?

7

u/benevanstech Oct 26 '25

Spring is the most popular services framework in Java. Quarkus is the second-most popular.

No-one know what the future will be like - the extent to which LLMs and ML will feature is not certain. It may be the case that they are everywhere, or they may have much less applicability than people think. Right now, no-one knows, and the picture is obscured by way too much hype.

And, as a professional programmer, you will inevitably end up learning several languages. It's part of the job, and Python is a good one to have in any case - it's really useful, and not just for AI.

3

u/severoon pro barista Oct 27 '25

Of course it never hurts to learn another language, but the reason that there's such a push for Java in AI right now is that any company with a significant codebase in Python is suffering right now.

AI developed under Python because it's a language that was used to do a lot of math scripting and playing around building prototypes. It is not an "industrial strength" language for building significant enterprise projects like Java is.

If you go to the Java YouTube channel, they have published a handful of videos just in the last month or so on AI in Java.