Java (JVM) Memory Types | Code Factory

Reference Link : Link

Donate : Link

Java Virtual Machine is a program/software which takes Java bytecode (.class files) and converts the byte code into machine understandable code.

JVM contains a module known as a class loader. A class loader in JVM loads, links and initialize a program.

1. Loads the class into the memory.
2. Verifies the byte code instructions.
3. Allocates memory for the program.

The memory in the JVM is divided into five different parts namely :

  1. Method area : The method area stores the class code, code of the variables and methods.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store