When displaying a java applet, the browser invokes the Java Virtual Machine (JVM) to interpret the bytecode into the appropriate machine language. JVM is a run-time engine that runs Java applications and calls the main method present in a java code.
JVM has three part: specification, implementation, and instance.