问题:
A . Just after line 13.
B . Just after line 14.
C . Never in this method.
D . Just after line 15 (that is, as the method returns).
● 参考解析
The correct answer to this question is C. The object is never garbage collected simply because the method returns it. Think about it, the message that receives the object might depend on it so it must be sure that the object received by the method wont be garbage collected. Only in this situation a local object wont be eligible for garbage collection. Otherwise, a local object is eligible for garbage collection as soon as the method ends.