Java Instance - How to check the version of Java currently running?
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)