How to Install Java on CentOS 8

Java is one of the most popular programming languages used to build different types of applications and systems. In this tutorial, we will explain how to install one or more Java (OpenJDK) versions on CentOS 8 and how to set the default Java via alternatives.

Source: LXer – How to Install Java on CentOS 8