r/javahelp • u/justforvue • 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.
4
u/qelery Mar 02 '21
I think any version of Java 8+ should be fine. Java 8 was a big update that included lambda expressions and streams. Then focus on what features are available in Java 14 later.
It’s kind of like how in Python if you know a project was written in Python 2.x it’s considered “older”. Java 7 and earlier is kind of a similar cut off of what’s considered “older” (except Java is completely backwards compatible).
I would start with the free MOOC.fi course which uses Java 8.
1
3
u/desrtfx Out of Coffee error - System halted Mar 02 '21
free MOOC.fi course which uses Java 8.
The 2020 version uses Java 11: https://www.mooc.fi/en/installation/netbeans
15
u/mayur217 Mar 02 '21
I would suggest don't focus on a particular version of java. The only major differences between versions are some changes in it's libraries and some internal tweaks. To get going quickly, I would suggest start with any free resource you can get your hands on. Go for Java 8 and above. The newer a version of java is, the more difficult and expensive it would be to find it's resources. The core concepts hardly ever change and any library upgrades there might be in later versions, could be easily understood if you have a good understanding of the core functionality.
Try "Java the complete reference" book by Hebert Schildt. I recently read it's 11th edition and liked it.
Many would suggest Udemy Course by Tim Buchalka, but I wouldn't go for it if I was a beginner. It's great for someone with some prior exposure to Java.
And finally, type it out, as much as you can. You can read about concepts all day long, but if you don't have the habit of quickly typing out the ideas you have in your head, it won't do you any good.
5
u/see_recursion Mar 02 '21
The only major differences between versions are some changes in it's libraries and some internal tweaks.
I'm not sure if I agree with that. Java 8 was a pretty significant change. OP should definitely focus on 8+, but hopefully won't have to learn too much about those newer features initially.
1
u/khmarbaise Mar 02 '21
I think it was related to JDK8 up to JDK13... or maybe more recent... if you think about JDK7 vs. JDK8 then absolute agree.. but starting with less than JDK8 does simply no sense anymore..
2
u/see_recursion Mar 02 '21
Someone just learning should consider starting with Java 15 simply for the massive improvement in NullPointerException diagnostics.
1
u/khmarbaise Mar 02 '21
Someone just learning should consider starting with Java 15 simply for the massive improvement in NullPointerException diagnostics. Not that much agreement here because there are so many things with JDK8 out there ... unfortunately not many have yet migrated to go to JDK11 + ... or even worse prepared for JDK17 in september.
1
u/see_recursion Mar 02 '21
To me decent NPE diagnostics are invaluable in tracking down failures. The delta between 15 and whatever 8+ version is used in production is pretty damn small. I'm not sure of a significant disadvantage of using 15 to learn on.
1
Mar 03 '21 edited Jul 28 '26
[removed] — view removed comment
1
u/jstanaway Mar 05 '21
I am using this for additional content to my Adv data structures class. Definitely find that it helps. Honestly I think Java has a little more of a learning curve compared to other languages.
6
u/desrtfx Out of Coffee error - System halted Mar 02 '21
Both, JavaScript and Python are very different to Java, so the best approach is a beginner tutorial. See Learning Java in the sidebar.
2
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.ofdoesn't exist in Java 8. But you usually find a good replacement - likeArrays.asList.The other way doesn't really work - if you internalized
Arrays.asList, then you might not even discoverList.ofwhen 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 !
1
u/wildjokers Mar 02 '21
There is a "Learning Java" section in the sidebar that will get you started.
•
u/AutoModerator Mar 02 '21
Please ensure that:
Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions
You include any and all error messages in full
You ask clear questions
You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.
Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar
If any of the above points is not met, your post can and will be removed without further warning.
Code is to be formatted as code block (old reddit: empty line before the code, each code line indented by 4 spaces, new reddit: https://imgur.com/a/fgoFFis) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.
Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.
Code blocks look like this:
You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.
If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.
To potential helpers
Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.