JVM will have different memory
areas to store different values which we declared in our program. Those are
Heap
Memory:
Stores all instance variables
Stores instances which are
created by using new operator
Method
Area:
This stores all method calls. This is a part of Non Heap memory
String
constant Pool:
This area will store the string constant.
Ex: String s=”XYZ”; //
XYZ is a string constant
Permgen
section:
Permgen stands for
permanent generation. This is the
part of Heap memory which will store static and final values. We can predict exact
area in the Heap memory where this memory will creates
No comments:
Post a Comment