To check the Java version on Linux Ubuntu/Debian/CentOS:
Read moreWhat is the latest Java version for Ubuntu?
Installing the Default OpenJDK (Java 11 ) At the time of writing, the latest LTS version of Java is version 11. That’s it! At this point, you should have successfully installed Java on your Ubuntu system.
Read moreHow do I change my default Java version Mac?
Follow these steps to change the default version of Java on mac:
Read moreHow do I use a different version of Java on a Mac?
For macOS Sierra 420
Read moreIs Java safe for Mac?
As long as its downloaded from Oracle’s official Java website, its fine .
Read more