how to know instaled java version code example Example: how to check which java version i have java -version