Determine Java version from a command prompt

To determine the version of Java that is installed on a Windows computer, fromthe command prompt run the following command:

java -version

You will get a similar output like the screenshot below.

In the above screenshot the java -version command indicated that Java version 1.7.0_04 is installed.