instalar java ubuntu 20.04 code example
Example 1: how to install java 8 on ubuntu 20.04
sudo apt update
sudo apt install openjdk-11-jdk
sudo apt update
sudo apt install openjdk-8-jdk
Example 2: install java in ubuntu 20.04
java -version
sudo apt install default-jdk
java -version
javac -version
sudo apt install default-jre
Example 3: install java on ubuntu 20.04
sudo apt install default-jre
Example 4: install java on ubuntu 20.04
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EA8CACC073C3DB2A