Java is one of the most important programming languages which is supported on so many types of operating systems. This tutorial informs you how to install Java on Ubuntu Operating System.
1. First, update the package indexsudo apt-get update
2. Now use the following command to install the Java Runtime Environment (JRE)sudo apt-get install default-jre
Now you should have java installed on your system. You can check the version of Java using the following command.java -version
Please give your feedback.