how to uninstall jdk 8 in ubuntu 18.04 code example
Example 1: how to uninstall openjdk in linux
sudo apt-get autoremove openjdk-11-jre
Example 2: uninstall java 11 linux
sudo update-alternatives --remove "java" "/usr/lib/jvm/jdk[version]/bin/java"