This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi all, I came across this question in a mock exam . 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 They say that the answer is b,c,e. but my questions are 1)can we run it directly. i think we can only make a suggestion. 2)"gc runs under low memory situations". Is it compulsory. What I mean is that it may not get to run under those situations also. what do you say on this question. Thanks, Praveen