the only reference to ObjA object through the live code is the reference 'test' inside the method makeobj(). As soon as the method ends, the reference ceases to exist and hence both the objects are eligible for GC.
If makeObj would have returned an objA reference, then the two objects would have become eligible for GC only after the completion of main method. [ July 22, 2006: Message edited by: Neelesh Bodas ]
Joined: Jun 18, 2006
Thank you Neelesh
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com