how to install java 8 in ubuntu 16.04

Java
sudo apt-get install openjdk-8-jdk

Source

Also in Java: