How can you force garbage collection of an object?()
- 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).
正确答案:A
答案解析:有

微信扫一扫手机做题