how to find out which version of jdk is installed on my computer code example
Example 1: java check jre version
java -version #for jre version
javac -version # for java compiler version
Example 2: check jdk version
java -version
java -version #for jre version
javac -version # for java compiler version
java -version