ubuntu 20 install jdk 8 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: how to install java 8 in ubuntu 16.04
sudo apt-get install openjdk-8-jdk