check java version cmd code example
Example 1: check java version in cmd
java -version
Example 2: check java version
java --version
Example 3: java check jre version
java -version #for jre version
javac -version # for java compiler version
java -version
java --version
java -version #for jre version
javac -version # for java compiler version