apt jdk 11 code example
Example 1: install openjdk 11 ubuntu
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install default-jdk
Example 2: apt install java 11
sudo apt-get update
sudo apt-get install oracle-java11-installer-local
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install default-jdk
sudo apt-get update
sudo apt-get install oracle-java11-installer-local