WHAT IS HEAP?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
Java 
 541  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    What Is Heap?

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!