What is Java heap?

Answer:
In java when an object of array is created, memory is allocated to them from heap. The JVM through the use of new operator allocates memory from the heap for the object. The JVM has a deamon thread known as Garbage Collector whose task is to free those objects from heap whose reference is not alive in stack.
Contributor: Avinash
First answer by ID0995925297. Last edit by Avinash Anand. Contributor trust: 0 [recommend contributor recommended]. Question popularity: 18 [recommend question].