yum is a package manager for a particular set of linux distributions ( such as Fedora, red hat enterprise, centos, etc ), much like
apt is for ubuntu or
pacman is for Arch.
Depending on the flavour of the image you’re using any one of these will be installed, take a look at the openjdk image and checkout the base image that it is building upon. That should get you in the right direction