Java Virtual Machines Memory Explained
Heap Memory:
Only for objects:
immutable objects,
class objects
Stack Memory
method specific values
local variables
static variables
constant variables
complete class structures
Ways to make your object elligible for garbage collection.