'How find multiple java version in Linux machine

I have installed Java 8 and 11 to my Linux machine. Now I want to find my java 11 version. I used java -version command for that.

But i can see always only java 8 version. Can someone please help me to find my java 11 version in machine?

Thank you.



Solution 1:[1]

below one will list all the installed java versions and will prompt if need to change version

sudo update-alternatives --config java 

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Peter Csala