jdk install linux terminal code example
Example 1: install jdk linux
sudo apt install openjdk-8-jdk
Example 2: install jdk linux command
sudo apt install openjdk-13-jdk
# to run Java applications you need the Java Virtual Machine as well
sudo apt install default-jre