how to uninstall java 8 in linux code example
Example: uninstall java 11 linux
sudo update-alternatives --remove "java" "/usr/lib/jvm/jdk[version]/bin/java"
sudo update-alternatives --remove "java" "/usr/lib/jvm/jdk[version]/bin/java"