 One of the ideas behind Java's automatic memory management model is that programmers can be spared the burden of having to perform manual memory management.In some languages, memory for the creation of objects is implicitly allocated on the stack or explicitly allocated and deallocated from the heap.In the latter case, the responsibility of managing memory resides with the programmer.