check version of installed version of jaba code example Example: how to check which java version i have java -version