java中final修饰符

final修饰属性、局部变量,值不能被修改

final修饰类,不能被继承 

final修饰方法,不能被子类覆盖

posted @ 2017-07-13 20:06  mauan  阅读(167)  评论(0编辑  收藏  举报