how to view java version in windows 10 threw command prompt code example Example: java version command java -version