1. final修饰的类,为最终类,该类不能被继承。如String 类
2. final修饰的方法可以被继承和重载,但不能被重写
3. final修饰的变量不能被修改,是个常量
通俗易懂理的博客如下:
https://www.cnblogs.com/chhyan-dream/p/10685878.html
1. final修饰的类,为最终类,该类不能被继承。如String 类
2. final修饰的方法可以被继承和重载,但不能被重写
3. final修饰的变量不能被修改,是个常量
通俗易懂理的博客如下:
https://www.cnblogs.com/chhyan-dream/p/10685878.html