Reddy : if you don't use your object up to that min time the grabagecollector will remove it from heap and reclaim the memory which is occupied by your object.
Is it so ?
The garbage collector will reclaim the memory only when the object is not referenced by any active threads . If an active
thread has reference to any of the object that will not be GC'd.
Also we cant force the JVM to do the garbage collection, even if you call System.GC() it's uncertain that the objects that are eligible for garbage collection will be removed from heap.
[ September 15, 2005: Message edited by: Srinivasa Raghavan ]
Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified