Check out example codes for "apt install java 11". It will help you in understanding the concepts better.

Code Example 1

sudo apt-get update

sudo apt-get install oracle-java11-installer-local

Learn ReactJs, React Native from akashmittal.com