單項選擇題

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.

微信掃碼免費搜題