how to install java 11 on ubuntu 16.04 code example Example: how to install java 8 in ubuntu 16.04 sudo apt-get install openjdk-8-jdk