Java checking version

How to Check version of Java installed in System ?

  1. Open Command Prompt.
  2. Make sure that you have set up class path.
  3. Just type following command “java -version” inside command Prompt.
C:code>java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
  1. It will return you the version you are using.
  2. It will also mention Operating system type. (It shows that OS is 64 bit).

Java Version