Home > DeveloperSection > Interviews > What Is Heap?

Posted on    July-03-2015 12:16 AM

 Java Java 
Ratings:
 1 Answer(s)
  353  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Points:4035
Posted on    July-03-2015 12:16 AM

1.When JVM starts, heap is created
2.Heap is the runtime data area of the JVM
3.It is shared by all the threads inside the JVM
4.It allocates memory for all class instances and arrays
5.Heap storage for objects is reclaimed by garbage collector when it is not used.
6.JVM throws OutOfMemoryError, If a computation needs more heap than what can be supplied by the automatic storage management system.

Don't want to miss updates? Please click the below button!

Follow MindStick