r/learnjava • • Feb 13 '24

Does Java versión matter?

Hello everyone, I have a beginner's question: does the version of Java I chose to learn matter?

A bit of context: I'm from Chile, and I've been studying computer science for a few years now. In my university, I learned Java 8, Python, and other languages, and because of that, I dismissed Java and went for Python, C#, or TypeScript. But now that I'm on vacation, I've taken another look at Java, and I must admit I really like it. Not only that, but in my country, they pay well for Java programmers, although they require a lot of experience. The downside is that I heard they use an old tech-stack here. For example, some systems use Java 8, others Java 11, and I even heard of one using Java 1.5 - I think. Anyway, I've been focusing on learning Java 17 or Java 21, and I wanted to know if that's a bad decision since, would it affect anything?

As extra context, my focus is to specialize in backend development, either in Java, Node, Go, or C#. But for now, my favorite is Java with Spring Boot, and that's why I'm somewhat confused about whether the versions would pose a problem if I just focus on learning one.

2 Upvotes

24 comments sorted by

View all comments

5

u/[deleted] Feb 13 '24

Java 8 is where most of the industry is stuck at. Java 9 is the last breaking version. Newer versions have better/more APIs in the JDK.

Syntax remains largely the same

-1

u/hrm Feb 13 '24

That’s just not correct. Looking at a number of different surveys. For instance jetbrains from 2023, 45% of the repondants say that they regularly use java 17. In my own experience much is still on Java 8 but they are converted to Java 18 or similar at a steady pace. Around here new services are not made using Java 8.

4

u/CleverBunnyThief Feb 13 '24

That same survey you mention also shows 50% of developers still use 8 regularly.

https://www.jetbrains.com/lp/devecosystem-2023/java/

1

u/hrm Feb 13 '24

Yes, I’m not claiming Java 8 is unused. But the post made it sound like nothing past 8 was even touched at all. I mean, some places still run code from the 80s so legacy code is hard to get rid of all together.

1

u/flowingice Feb 13 '24

Java 8 was the most used version in that survey, even if you want to get pedantic, his words were "most of the industry is stuck at" which is correct, it's a version with most projects. So yes, literally most of the industry is using almost 10 years old version.

1

u/hrm Feb 14 '24

50% of something that adds up to about 160+%. Yes Java 8 is still a huge legacy, but most code newer Java as well.