Check out example codes for "what is java plug-in". It will help you in understanding the concepts better.

Code Example 1

Java Plug-in is a software product from Sun Microsystems, Inc. 
that allows enterprise web managers to direct Java applets 
and JavaBeans components on their intranet web pages to run 
using Sun's Java Runtime Environment (JRE).

Learn ReactJs, React Native from