Sitemap

What exactly happens inside of JVM?

2 min readMay 14, 2021
Press enter or click to view image in full size

At the moment we compile our Java program, it will create a Java class file. In order to execute this Java class file we tell our operating system to give me a JVM instance or it says that a non-deemed thread is generated. From here onwards, this non-deemed thread invokes the main method in class file and continue to execute that particular Java class.

In other words, JVM instance born when non-deemed thread is generated or application is running otherwise the created JVM instance will die.

There are major 3 components relying on JVM. They are,

  • Class Loader
  • Memory Area
  • Execution Engine

Below picture shows you clearly internal structure of JVM.

Class Loader is simply responsible for read the compiled Java class file and put it into the memory area.

Memory area holds whole information about class file. Let’s discuss about the every areas of JVM memory with later articles.

Execution engine is responsible for execute java class files. About execution engine will be discussed with the later articles.

Hope you get a clear understand about the internal structure of JVM up to certain level. We will discuss each and every area of JVM through my future articles.

Stay Safe !!!

--

--

No responses yet