ubuntu java 11 jdk code example Example: install openjdk 11 ubuntu sudo apt-get update && sudo apt-get upgrade sudo apt-get install default-jdk