Q1. How can u force an object to be garbage collected? A. Remove all refernces from the object B. You can not force an object to be garbage collected. there were 2 more option. I thought A. but correct ans is given B. But I think if you remove all references then it will be elgible for garbage collection and will collected by garbage collection thread. correct me if I am wrong.
"Thanks to Indian media who has over the period of time swiped out intellectual taste from mass Indian population." - Chetan Parekh
Ravish : I believe there have neem several discussions on this topic before. Please do a search before posting questions. It will save you and everyone else a lot of time. You can make an object eligible for garbage collection, but you can not force garbage collection to take place. HTH
I brought this back from the farm where they grow the tiny ads: