how to install openjdk in linux code example
Example 1: install openjdk 8 sdk on ubuntu
sudo apt-get install openjdk-8-jdk
Example 2: install openjdk 11 ubuntu
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install default-jdk
sudo apt-get install openjdk-8-jdk
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install default-jdk