Java Virtual Machine (JVM)

Java Virtual Machine (JVM)

We can say that the JVM or Java Virtual Machine, is a part of the Java Runtime Environment. With JVM, we can implement the java application on any platform. So, let’s now see in short, how this all happens. The below image represents the JVM architecture –

Java Virtual Machine | JVM

We all know that with the javac compiler, we can get our java source code converted to something called a Byte-code, which is like an intermediate code. This byte-code has a .class extension.

Now, it is the JVM, which converts this byte-code into the executable file for that particular environment in which we wish to run the java application. This is referred to as platform-independent. There is also something called a JIT(just in time)compiler Now, we have a basic understanding of what JVM is. Now let’s have a look over the different components in JVM.

Here is the list of some of the components –

  • Classloader
  • Runtime data area
  • Execution engine