问题:Which of the following statements about Java's garbage collection are true?
A. The garbage collector can be invoked explicitly using a Runtime object.
B. float methodTwo(){}
C. long methodOne( int c, long d ){}
D. int methodOne( int c, long d ) throws ArithmeticException{}
B,C为什么对呢??难道就是因为定义的是空的方法体吗??
回答:在进行垃圾手机的时候,需要调用finalize()方法,而该方法需要抛出trowable异常  |