hi, are following statements about garbage collection true? a) GC informs your object when it is about to be garbage collected. b) GC runs in low-memory situations. Not sure about a) I thought b) is false .. cos GC is vendor dependent. Any idea? Thanks in advance..
I think that a) is false, too. Logically, it does not seem to make cany sense to inform the object that is to be garbage collected that you are gonna' be gc'd. Could the ranch-experts nod yes/no!
a is true. And that is why finalize() is run before an object is garbage collected. And i think b is false, since you cannot guarantee that gc will run, even at low memory situations. Lakshmi
Don't get me started about those stupid light bulbs.