2.3K
- Open Command Prompt.
- Make sure that you have set up class path.
- 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)
- It will return you the version you are using.
- It will also mention Operating system type. (It shows that OS is 64 bit).