I am learning java and right now i am stuck at memory allocation of object\'s and local variables. can any one illustrate or clear some of my doubts??
Ofcourse, java garbage collector always takes care of the Heap, when it gets a chance to be executed, so it only looks for orphan objects and wipes them out, that's why NEW keyword in java always creates new objects on the Heap memory.