how to check java version in linux code example
Example 1: check java version linux
//1.6 and higher versions
java -version
Example 2: linux command to see all the java version installed
sudo update-alternatives --display java
Example 3: how to find java version linux
java -version
Example 4: linux command to see all the java version installed
sudo update-alternatives --config java