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