How can you force garbage collection of an object?...
单选题

How can you force garbage collection of an object?()

发布日期:2020-04-10

A.Garbage collection cannot be forced.

B.Call System.gc().

C.Call System.gc(), passing in a reference to the object to be garbage collected.

D.Call Runtime.gc().

E.Set all references to the object to new values(null, for example).

热门试题

热门资讯

    暂无相关推荐~

分享给好友

分享到朋友圈

取消

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

确定