未分类题
voidstart(){13.Aa=newA();14.Bb=newB();15.a.s(b);16.b=null;17.a=null;18.System.out.println(startcompleted”);19.}WhenistheBobject,createdinline14,eligibleforgarbagecollection?()
A.Afterline16.
B.Afterline17.
C.Afterline18(whenthemethodsends).
D.Thereisnowaytobeabsolutelycertain.
E.TheobjectisNOTeligibleforgarbagecollection.
【参考答案】
D
ThecorrectanswertothisquestionisD.Themembermethodsisno......
(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)