r/javahelp • • Mar 02 '21

Codeless Best resource to learn Java 14 ?

Like I have not any experience with java before. However I have intermediate knowledge of javascript and python. My new job needs me to work on java 14. So what is the best approach to start learning that ? Sorry if the question sounds stupid.

21 Upvotes

22 comments sorted by

View all comments

1

u/Don_Belga Mar 02 '21

Im new to java , of what ive seen its better to learn “LTS” long term support versions like java 8 and java 11 because of the support , but maybe i could be mistaken since in the industry it might be different when using certain versions

3

u/wildjokers Mar 02 '21

LTS means absolutely nothing unless you are paying for support. If you aren't paying support you shouldn't place any special relevance to any particular version.

1

u/Don_Belga Mar 02 '21

Im new to java like ive mentioned , good to know thanks for the info

3

u/wildjokers Mar 02 '21

That's ok because many experienced java devs don't understand this about so-called LTS either.

1

u/Don_Belga Mar 02 '21

So if u dont mind me asking, when learning java should i keep up with each version of java with the new features it comes with even tho the core doesnt change as much?

2

u/DasBrain Mar 03 '21

It's the best thing you can do.

When you later have to use an older version, then you just can't use some stuff - like List.of doesn't exist in Java 8. But you usually find a good replacement - like Arrays.asList.

The other way doesn't really work - if you internalized Arrays.asList, then you might not even discover List.of when working with a recent Java version.

(And if you need help finding replacements for older Java versions - you can always ask - a question like "I need a List, in Java 15 I would use List.of(...), but I have to use Java 8 where this method does not exist. What can I use instead?" is good. And Title: List.of() replacement for Java 8)

1

u/Don_Belga Mar 03 '21

Thanks for answering , im doing notes and getting organized so this helps inmensly !