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

Show parent comments

1

u/nutrecht Feb 15 '24 edited Feb 15 '24

Java 8 is where most of the industry is stuck at

This really isn't the case. The vast majority of companies don't just have a single application; but loads of them. And anything that's not completely in maintenance mode will have moved to 11 or later now. Most libraries/frameworks have already dropped support for 8 so "the industry" has mostly moved on.

Of course there's legacy stuff that's more or less at the end of it's cycle and not worth upgrading that people sometimes have to work on, but the industry is in no way "stuck".

If you look at actual usage reports, for example this one, Java 8 usage is dropping fast.

1

u/[deleted] Feb 15 '24

Someone else quoted a Jetbrains survey on this thread where 60% of respondents use Java 8 regularly

1

u/nutrecht Feb 15 '24

50%, yes

You're right that 8 is in use in a lot of places still. But that doesn't mean the industry is 'stuck' and also doesn't mean that 50% of applications run Java 8.

1

u/[deleted] Feb 15 '24

Well, that’s probably just semantics of what “stuck at” means and what I meant by it.

Overall, Java 9’s breaking changes meant almost everything avoided upgrading like the plague. And eventually, as LTS versions have dried up, more and more software is upgrading. Now that Oracle is keen on fully leaving Java 8 behind (which has outlived a few later LTS releases) almost everything is either upgrading or being left behind.

Still, the overall point is versions don’t really matter that much and while a lot of the industry probably has moved on, it is still a sizeable if not major chunk of the industry that is still on Java 8.

I guess it’s the IE11 of backend haha

1

u/nutrecht Feb 15 '24

Overall, Java 9’s breaking changes meant almost everything avoided upgrading like the plague.

This wasn't what I saw at all the clients I worked for. Of course, there was some ancient WebSphere stuff that was stuck on 8, but anything somewhat modern was not hard to migrate past 8.

Of course, there are shitty companies that have mostly ancient outdated stuff they all outsource, but I don't work for these kinds of companies. It's not hard for a decently experienced developer to not have anything to do with Java 8 anymore.

Still, the overall point is versions don’t really matter that much and while a lot of the industry probably has moved on, it is still a sizeable if not major chunk of the industry that is still on Java 8.

Like I showed in the report; it's below 33% of applications currently. So while it's sizeable, it's definitely not a majority. So it's clear the industry isn't 'stuck' on 8 at all :)