By default, Ubuntu does not come with Java (or the Java Runtime Environment, JRE) installed. However, you may need it for some programs or games like Minecraft.
Can Ubuntu run Java?
The Ubuntu repository offers two (2), open-source Java packages, Java Development Kit (Open JDK) and Java Runtime Environment (Open JRE). … Also available is Oracle Java, another SE implementation, which has additional commercial features. You can find the official Oracle JDK through a third-party repository.
Does Ubuntu 20.04 have Java?
The easiest option for installing Java is to use the version packaged with Ubuntu. By default, Ubuntu 20.04 includes Open JDK 11, which is an open-source variant of the JRE and JDK. To install this version, first update the package index: sudo apt update.