how to check java jdk version code example
Example 1: how to check which java version i have
java -version
Example 2: how to see list of java of versions in mac
/usr/libexec/java_home -V
Example 3: check java version
java --version
java -version
/usr/libexec/java_home -V
java --version