java中final修饰符

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

final修饰类,不能被继承 

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

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