Ubuntu 18.04 install Java 8 code example
Example 1: install openjdk 8 sdk on ubuntu
sudo apt-get install openjdk-8-jdk
Example 2: how to install java 8 in ubuntu 16.04
sudo apt-get install openjdk-8-jdk
Example 3: instalar java ubuntu 18.04
sudo apt install default-jre