文件名称:Java
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:12.72kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
第一,谈谈final, finally, finalize的区别。
final—修饰符(关键字)如果一个类被声明为final,意味着它不能再派生出新的子类,不能作为父类被继承。因此一个类不能既被声明为 abstract的,又被声明为final的。将变量或方法声明为final,可以保证它们在使用中不被改变。被声明为final的变量必须在声明时给定初值,而在以后的引用中只能读取,不可修改。被声明为final的方法也同样只能使用,不能重载。 -First, talk about the final, finally, finalize the difference. final-modifier (keyword) if a class is declared final, meaning that it can not send another gives rise to new sub-category, not as a parent class is inherited. Thus, a class can not both be declared abstract, and it was declared as final the. The variable or method declared as final, can guarantee that they will not be changed in use. Be declared as final variables must be given in the initial statement, a reference in the future can only read, can not be changed. The method is declared as final can also use, not overloaded.
final—修饰符(关键字)如果一个类被声明为final,意味着它不能再派生出新的子类,不能作为父类被继承。因此一个类不能既被声明为 abstract的,又被声明为final的。将变量或方法声明为final,可以保证它们在使用中不被改变。被声明为final的变量必须在声明时给定初值,而在以后的引用中只能读取,不可修改。被声明为final的方法也同样只能使用,不能重载。 -First, talk about the final, finally, finalize the difference. final-modifier (keyword) if a class is declared final, meaning that it can not send another gives rise to new sub-category, not as a parent class is inherited. Thus, a class can not both be declared abstract, and it was declared as final the. The variable or method declared as final, can guarantee that they will not be changed in use. Be declared as final variables must be given in the initial statement, a reference in the future can only read, can not be changed. The method is declared as final can also use, not overloaded.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Java.doc
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
