谈谈final,finally,finalize的区别
2012-12-06 09:26
260 查看
final修饰符用于指定类不能扩展或者方法或属性不能重写。它将防止其他类通过重写重要函数来更改类的行为。带finally块用于清除在try块中分配的任何资源。控制总是传递给finally快,与try块的存在方式无关。finalize允许object在“垃圾回收”回收object之前尝试释放资源并执行其他清理操作。
相关文章推荐
- 谈谈final,finally,finalize的区别
- 谈谈final、finally、finalize的区别
- 谈谈final, finally, finalize的区别。
- 谈谈final,finally,finalize的区别
- 谈谈 final, finally, finalize 的区别
- 谈谈final, finally, finalize的区别
- 谈谈final, finally, finalize的区别
- 谈谈final, finally, finalize的区别
- 谈谈final、finally、finalize的区别
- 谈谈final, finally, finalize的区别
- 谈谈final, finally, finalize的区别
- 谈谈final, finally, finalize的区别。
- 谈谈final, finally, finalize的区别
- 谈谈final, finally, finalize的区别
- 谈谈final, finally, finalize的区别
- 谈谈final,finally,finalize的区别
- 谈谈final, finally, finalize的区别
- 谈谈final, finally, finalize的区别
- 谈谈final, finally, finalize的区别
- 谈谈final, finally, finalize的区别