ubuntu install java 15 code example
Example 1: how to install java on ubuntu 18.0.4
$ sudo apt install openjdk-11-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
Example 3: how to install java 11 on ubuntu
sudo add-apt-repository ppa:linuxuprising/java