how to check version in of java in windows code example Example: check java version in cmd java -version