posted 15 years ago
Hi all,
This question is from enthuware series.
After what line the MyClass object created at line 1 will be eligible for GC?
Select 1 correct option.
a 2
b 5
c 6
At line 6, x starts pointing to a new MyClassObject and there remains no reference to the original MyClass object.
d 7
e Never till the program ends.
How come the answer is c? can someone explain please?
thanks,
Piya