Home >Java >javaTutorial >How to check java version
Do you want to know the Java version, but don’t know how to check it? Then take a look at this article. The editor will take you to learn how to check the Java version, divided into Windows and Linux systems.
How to check the java version:
1. Under Windows system
1. Press the Windows key r key to pop up the run window. Enter cmd to open the command line window.
2. Enter java -version. Press Enter, as shown in the figure below, which is the JDK (that is, Java) version information.
2. Under the Linux system
Under the Linux system, also enter "java -version in the terminal window Terminal" ”, and then press Enter as shown in the figure below.
Related learning recommendations: java basic tutorial
The above is the detailed content of How to check java version. For more information, please follow other related articles on the PHP Chinese website!