We may have also installed version 8 of OpenJDK JRE apart for version 11 of JDK. We would discuss how to change the default Java version in Ubuntu 20.04.
It is important to know which package i.e. JDK or JRE we need to install. We would discuss how to install OpenJDK JRE / JDK in Ubuntu 20.04 LTS release.
Oracle Java SE Development Kit 12 can be installed in Ubuntu by downloading the .deb package available from Oracle's website itself.
In this article, we would discuss how to write your first Java program. Then, we will compile and run it to get the desired output.