A. You can directly free the memory allocated by an object. FALSE
B. You can directly run the garbage collector whenever you want to. FALSE
C. The garbage collector informs your object when it is about to be garbage collected. this is TRUE as finalize() method is called before actually destroying an object.
D. The garbage collector reclaims your object's memory as soon as it becomes a candidate for garbage collection. FALSE as we don't know when it would actually run after an object becomes eligible for GC.
E. The garbage collector runs in low-memory situations. Not necesssarily, so FALSE
Originally posted by wangjiaxin:
Please choose all correct description about Garbage Collection:
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 your object's memory as soon as it becomes a candidate for garbage collection.
E. The garbage collector runs in low-memory situations.
is the answer E
thanks a lot
[ February 06, 2002: Message edited by: mark stone ]