Yes.So that means that objects in heap area will be there until program runs.No garbage collection will occur right ? But when I'm monitoring the memory graph in JConsole it is showing sawtooth like
pattern.
Another question is will this program end up with OutOfMemoryError ?