how to check the version of java from class code example Example: how to check which java version i have java -version