how to check java version on your system with cmd code example Example: check java version in cmd java -version