Java (JVM) Memory Types | Code Factory

  1. Method area : The method area stores the class code, code of the variables and methods.
  2. Heap : The Java objects are created in this area.
  3. Java Stack : While running methods the results are stored in the stack memory.
  4. PC (Program Counter) Register : These contain the address of the instructions of the methods.
  5. Native method stacks : Similar to Java stack, native methods are executed on the Native method stacks.




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

A Bug of GCDWebServer

Linux utilities that every developer should know (printable tooltips included)

Symfony 3.4 PHPUnit testing database data

The power of celebration

#100DaysOfCode Day 5

Python Morsels — CyclicList

Introduction to Numpy and Arrays

How to play three card poker?

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
Code Factory

Code Factory

More from Medium

Singleton Design Pattern in Java

Annotations In Java

Annotations In Java

Visitor Design Pattern in Java