Wednesday, August 28, 2013

What is Heap , Stack and Permgen in Java

Student std = new Student();
after executing the line above memory status will be like this.
  • Heap: stores "new Student()"
  • Stack: stores information about "std"
  • Perm Space: stores information about Student class