Select all valid answers.
Hi friends,
its a question from mock exam.
Select all valid statements.
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. ans given is c d and e. Why d option is right? The
word "as soon as " actually makes it false, its never guaranteed when gc will reclaim object's memory.
any comments?
Thanks
Jyotsna