posted 21 years ago
No object is garbage collected.
First off, there is only one object created at line 1.
Both the variables a and b refer to the same object. When u set a to null, b still refers to the object.
So the object can't be GC-ed.
regards<br />Rajeshwari. N