how to check java version on windows cmd code example Example: how to check which java version i have java -version