There are also two different implementations of Java, OpenJDK and Oracle Java with almost no differences between them except that Oracle Java has a few additional commercial features.
Install OpenJDK
OpenJDK, the open source implementation of the Java Platform is the default Java development and runtime in CentOS 7.
The installation is simple and straightforward.