Originally posted by Kevin Lam:
I think the answer is after line 17, since before line17, object B is still referenced by object A...
Many be I am wrong, anyone else?
Kev
Yes Kevin, u r wrong.
Obj 'a' is not referring object 'b', just 'b'is passed to the method of 'A'.
B'coz "b=null" statement executes after finishing the execution of
"a.s(b)" method, we need not bother abt the method body..right?
When u say "b=null" there is no chance of having any reference to 'b'.
So ans is option-A

[ November 12, 2005: Message edited by: Mahendar Reddy ]