Memory Area

  1. Method Area: Responsible to get class information from the compiled class.
  2. Head: Stores information about the objects of particular class.
  3. Stack: Stores information about the methods and local variables. For an example, when we invoke a method it will create a frame in stack. After execution of method, the created method will be destroyed.
  4. PC register: Holds information about the current execution.
  5. Native method: Holds information about the native methods itself.



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
Sanduni Jayaweera

Sanduni Jayaweera

Associate Software Engineer at Virtusa.