新闻资讯 > JAVA常见问题解答(九)
                                                                                      
     【发表日期】:2007年7月25日   【出处】:思达网校    【作者】:思达网校   【阅读】:

问题: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异常

咨讯评论
相关连接
 
网校预告
联系方式
 免费咨询电话:1169865432

 电 话:023-65472523

 课程咨询:edu@staredu.net
 联系人:李老师 王老师
文章搜索: