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

How do I create an array of a string?

How do you count the number of String objects created in a program in Java? What is the easiest way to identify it?