In this article, we will you through the process of checking Java’s version windows-from-the-command-prompt” title=”How to restart Windows from the Command Prompt”>change–windows–password–access-a-folder–using-the-command-prompt” title=”How to access a folder using the command prompt”>using–command–prompt” title=”How to change Windows password using Command Prompt”>using the Command Prompt.
Step 1: Open the Command Prompt
The first step is to open the Command Prompt. You can do this by pressing the Windows key + R on your keyboard, typing “cmd,” and clicking the “OK” button. Another way to open the Command Prompt is by clicking on the Start button, selecting “All Programs,” and in the “Accessories” parent-folder-using-the-command-prompt” title=”How to access the parent folder using the command prompt”>folder, clicking on “Command Prompt.”
Step 2: Type “Java -version”
Once you have the Command Prompt open, type “java -version” (without the quotation marks) and hit the Enter key. This command will prompt the command prompt to check the version of Java installed on your computer and display it in the Command Prompt window.
You should see a similar output as shown below:
java version “1.8.0_181”
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
Step 3: Review the Java version
After typing the “Java -version” command, you should see a message that displays your Java version. The Java version is usually represented as a string, which comprises the Java version number, the Java Runtime Environment, and the Java HotSpot version.
For example, in the output above, the Java version is “1.8.0_181,” and the Java Runtime environment is “Java(TM) SE Runtime Environment (build 1.8.0_181-b13),” while the Java Hotspot version is “Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode).”
Step 4: Understand the Java version numbering system
The Java version numbering system comprises three parts, the major version number, the minor version number, and the update number. The major number represents significant changes in the Java platform, while the minor number represents additional features and functionality added to a particular version of Java. The update number, on the other hand, represents bug fixes and security updates.
For example, in the output “java version “1.8.0_181″”, the major number is “1,” the minor number is “8,” and the update number is “0_181.”
Step 5: Check for updates
It is advisable to check for updates regularly to ensure that you are running the latest version of Java. This is important because the latest version of Java will typically include bug fixes and security updates that will make your computer more secure and stable.
To check if an update is available for your Java version, visit the Oracle website and navigate to the latest Java version. The website will provide you with step-by-step instructions on how to download and install the latest version of Java.
In conclusion, checking the version of Java using the Command Prompt is an easy process that can be done in a few simple steps. Remember to keep your Java version up-to-date to ensure the smooth running of programs, prevent bugs, and maintain security.