install jdk 8 ubuntu code example
Example 1: java 8 install ubuntu
sudo apt-get install openjdk-8-jdk
Example 2: 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 3: install java ubuntu
sudo apt install default-jdk
Example 4: install java ubuntu
sudo apt install default-jre
Example 5: ubuntu install jdk 14
sudo add-apt-repository ppa:linuxuprising/java
sudo apt-get update
sudo apt-get install oracle-java14-installer oracle-java14-set-default