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