how to know what java version i have in windows code example Example: check java version in cmd java -version