使用final声明的类不能被继承
使用final声明的方法不能被重写
使用final声明的变量变成常量
不能被继承
不能被重写
变量变成常量
使用final声明的类不能被继承
使用final声明的方法不能被重写
使用final声明的变量变成常量
不能被继承
不能被重写
变量变成常量
上一篇:安卓生命周期图
在java中,final可以修饰类、方法和变量(包括成员
final关键字在java中被称为完结器,表示最终的意思,意味着被final修饰的成员不能被改变。final修饰变量时,意味着该变量是常量;final修饰方法时,意味着该方法不能被子类重写;
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M