Check out example codes for "how to install java runtime environment on centos 7". It will help you in understanding the concepts better.

Code Example 1

sudo yum install java-11-openjdk-devel

Learn ReactJs, React Native from akashmittal.com