How to Install Java on Ubuntu 16.04

In this article, we will show you how to install Oracle Java JDK8 on an Ubuntu 16.04 VPS. Oracle JDK is the official version distributed by Oracle. These guide should also work on Debian and Linux Mint, but was tested and written for Ubuntu.