command to check java version windows 10 code example Example: check java version in cmd java -version