how to check the java version thorugh commadn prompt code example Example: check java version in cmd java -version