Ubuntu: How to install Oracle JDK 8 with apt get

Oracle JDK can be easily installed in Ubuntu using apt. Using apt simplifies the job of updating the JDK from time to time. To install Oracle JDK 8 sudo apt update sudo add-apt-repository ppa:webupd8team/java sudo apt update sudo apt install oracle-java8-installer