r/learnjava • u/Cuervolu • 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
u/plastikbenny Feb 13 '24
Yes it matters. Libraries and frameworks have been migrating to newer versions of java, for instance spring 6 requires jdk 17 as a minimum, jakartaee 10 requires jdk 11. Typically organisations use the long term supported versions. That would be 8, 11, 17 and 21. But you don't need to master the whole language to use it. The Java language itself started out in the early 90s with a stated goal to be simple OO c-like, but has developed into a complicated behemoth that an ambitious developer can still spend a substantial part of their life studying.