Q29 from javaprepare.com
29.At what stage in the following method does the
string "abc" becomes available for garbage collection. Select the one correct answer.
A.Before statement labelled 1
B.Before statement labelled 2
C.Before statement labelled 3
D.Before statement labelled 4
E.Never.
The answer is D. Should it not be C ? i.e. Before stmt 3.