aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes help in garbage collection  Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "help in garbage collection  " Watch "help in garbage collection  " New topic
Author

help in garbage collection

K Vidhyakar
Ranch Hand

Joined: Jul 10, 2005
Posts: 66

Which two statements are correct?
A. There are no instanced of A that will become eligible for garbage collection.
B. Explicitly setting myA to null marks that instance to be eligible for garbage collection.
C. Any call on tryIt() causes the private instance of A to be marked for garbage
collection.
D. Private instances of A become eligible for garbage collection when instances of Alpha
become eligible for garbage collection.
Ashley Bideau
Ranch Hand

Joined: Apr 22, 2006
Posts: 40
A and D

A. There are no instanced of A that will become eligible for garbage collection.

D. Private instances of A become eligible for garbage collection when instances of Alpha
become eligible for garbage collection.

-Ashley
K Vidhyakar
Ranch Hand

Joined: Jul 10, 2005
Posts: 66
hi,
then wat aboud the option B. ie
B. Explicitly setting myA to null marks that instance to be eligible for garbage collection.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: help in garbage collection
 
Similar Threads
Garbage Collection question