ubuntu install jdk 8 code example
Example 1: java 8 install ubuntu
sudo apt-get install openjdk-8-jdk
Example 2: 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