What allows the programmer to destroy an object x?()
- A、 x.delete()
- B、 x.finalize()
- C、 Runtime.getRuntime().gc()
- D、 Explicitly setting the object’s reference to null.
- E、 Ensuring there are no references to the object.
- F、 Only the garbage collection system can destroy an object.
正确答案:F
答案解析:有

微信扫一扫手机做题