Check out example codes for "initialize applet in java". It will help you in understanding the concepts better.

Code Example 1

<html>
   <title>The ImageDemo applet</title>
   <hr>
   <applet code = "ImageDemo.class" width = "0" height = "0">
      <param name = "audio" value = "test.wav">
   </applet>
   <hr>
</html>

Learn ReactJs, React Native from akashmittal.com