how to know if java -version is compatible with javac code example Example: how to check which java version i have java -version