Java is a platform-independent, object-oriented programming language widely used for building robust, scalable applications

Install java on Ubuntu

1)Install Oracle Java 8 

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

2) set default java version

sudo apt-get install oracle-java8-set-default

3) Verify java Installation

java -version

Result:

Subscribe to Java