Java examples - how to view the current version of Java running?
We can use the -version argument to view the current version of Java run the following command:
java -version
The output is the above code examples:
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)