What is the command to know which version of java you are using


Answered by Scott on 2005-05-12 10:09:44: If you have set up your path correctly, you can type the following at the command prompt: 
 
java -version

Showing Answers 1 - 2 of 2 Answers

Scott

  • May 12th, 2005
 

If you have set up your path correctly, you can type the following at the command prompt: 
 
java -version

  Was this answer useful?  Yes

Govindasamy Raja

  • Jun 29th, 2005
 

We can get the java version using the following code- 
String javaVersion = System.getProperty("java.version");

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions