How can I find the current Java version running in my computer?

How can I find the current Java version running in my computer?



To check the java running version run below command.

       
java -version


To check the running java compiler version on your computer run below command.

       
javac -version

Comments

Popular posts from this blog

Explain briefly about POJO in Java?

How do I create an array of a string?

In Java, how would you create a function that prints out a string every 10 seconds?