- 6
- 0
- 约1.93万字
- 约 18页
- 2017-06-05 发布于河南
- 举报
JAVA经典32问(国外英文资料)
JAVA经典32问
First, the difference between final, finally, finalize.
The final? Modifiers (keywords), if a class is declared final, means that it cannot be derived from a new subclass and is not inherited as a parent. Therefore, a class cannot be declared as abstract and is declared final. Declaring variables or methods as final ensures that they are not changed in use. Variables that are declared final must be given initial values at the time of the declaration, which can only be read in later references and cannot be modified. The method declared as final is also used only, not overloaded.
The
原创力文档

文档评论(0)