12. void start() {  13. A a = new A();  14. B b = ...
单选题

12. void start() {  13. A a = new A();  14. B b = new B();  15. a.s(b);  16. b = null;  17. a = null;  18. System.out.println(“start completed”); 19. }  When is the B object, created in line 14, eligible for garbage collection?()  

发布日期:2020-04-10

A.After line 16.

B.After line 17.

C.After line 18 (when the methods ends).

D.There is no way to be absolutely certain.

E.The object is NOT eligible for garbage collection.

热门试题

热门资讯

    暂无相关推荐~

分享给好友

分享到朋友圈

取消

使用浏览器的分享功能,把这篇文章分享出去

确定