The method to check the java version is: first open the computer desktop, use the shortcut key [win R] to enter cmd to bring up the window; then enter [java -version] in the window; finally press Enter to view the version.
We can use the -version parameter to view the current running version of Java. The command is as follows: java -version
The output result of the above code example is:
java version “1.6.0_13”Java(TM) SE Runtime Environment (build 1.6.0_13-b03)Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)
Recommended tutorial: "java tutorial"
The above is the detailed content of Check what java version is. For more information, please follow other related articles on the PHP Chinese website!