how to find which java version is installed on windows code example Example: check java version in cmd java -version