Perm Space vs Heap Space









Copied From : http://stackoverflow.com/questions/4848669/perm-space-vs-heap-space

The heap stores all of the objects created by your Java program. The heap's contents is monitored by the garbage collector, which frees memory from the heap when you stop using an object (i.e. when there are no more references to the object.

This is in contrast with the stack, which stores primitive types like ints and chars, and are typically local variables and function return values. These are not garbage collected.



http://stackoverflow.com/questions/1279449/what-is-perm-space



Post a Comment