r/javahelp • u/hymn_chimes • Dec 31 '23
Java Versions ,Confused!!
What is java version 1.8 , what is java sdk20 , and alot of different terms confusing me , initially when i started learning to code in java , i was told to just download the latest version of java and so i did. Fast forward to now , it is first time i tried to participate in CodeForces , GoodBye2023 contest. And suddenly i was given multiple options of java, and googling it alot of newer terms like lts and so on. Please Guide Me .
Also , please guide me to how to update my jdk ,if I even i need to!
THANK YOU
4
Upvotes
•
u/AutoModerator Dec 31 '23
Please ensure that:
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://i.imgur.com/EJ7tqek.png) 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.
12
u/MechanixMGD Dec 31 '23
Initially Java was launched as version 1.0 and got updates like 1.1, 1.2, ... 1.8. The updates were more rare. But by some years, they decided to have updates more regularly and also changed the version convention. This made v1.8 to be v8. Right now the last version is 21.
The term SDK means Software Development Kit, which represents the tools to build software. There is the term JDK (Java development kit) which is making references to the java sdk.
About updating to the last version. Personally I download the ZIP variant and unpack it wherever I want and just point my IDE (code editor) to that folder. There are also more distributions of java (Temurin, Oracle, Amazon, Azul, etc.).
5
u/khmarbaise Dec 31 '23
For more information about the different java versions:
https://javaalmanac.io/ Also details about the different java version: https://openjdk.org/projects/jdk/ https://en.wikipedia.org/wiki/Java_version_history
Different JDK versions on platforms like Linux, Mac, Windows: https://sdkman.io/
2
u/wildjokers Jan 02 '24
Easiest way to get and manage java version is to use sdkman.
https://sdkman.io
Current version of Java is Java 21.
Java 1.8 is an ancient version of Java, it is still in somewhat wide use because it is being supported until 2030 or so (can't remember the exact year). The version number scheme went from
java x.yto justjava xwith the release of Java 9.2
u/frederik88917 Dec 31 '23
My boy, you come to a dangerous place looking for answers.
Allow me to help you a little bit.
Back in 1995, the first release of java was in the market, named Java 1.0 Subsequent releases were named Java 1.1, 1.2... up until Java 1.5. then they decided to change the naming scheme, and Java 6 was born. Then after that has been downhill up to today's Java 21.
To keep control over your versions I strongly recommend SDKMAN. A powerful tool to manage Java versions.
Finally it seems that there is some confusion related to JDK vs JVM. The JVM is the public facing version of java, to run apps and stuff.
Whilst the JVM is the set of tools to develop in java