how to know where my java is installed linux code example
Example 1: linux command to see all the java version installed
sudo update-alternatives --display java
Example 2: how to find java version linux
java -version
sudo update-alternatives --display java
java -version