I am the most eligible bachelor in whole world, but only known in limited territory!!!
Digital Intoxication Blog
Originally posted by Vladimir Kositsky:
direct invoking of the garbage collector does not make
"guarantees that the objects no longer in use will be garbage collected ".
But you are right, gb could be explicitely called, and for purpose of this question b is correct.
[This message has been edited by Vladimir Kositsky (edited December 30, 2000).]
Originally posted by lucy hu:
this one is from BB exam,
Question 65: Which statements about garbage collection are true?
Select all valid answers.
a.You can directly free the memory allocated by an object.
b.You can directly run the garbage collector whenever you want to.
c.The garbage collector informs your object when it is about to be garbage collected.
d.The garbage collector reclaims an object's memory as soon as it becomes a candidate for garbage collection.
e.The garbage collector runs in low-memory situations.
The answer is b, c, e.
I'm confused about c, how does the garbage collector inform?
Lucy
"Learning is weightless, a treasure you can always carry easily." -Chinese Proverb