final is a non-access modifier applicable only to a variable, a method or a class.
·
If any variable is made as final, the value of that
final variable cannot be changed(It will be constant).
·
If any method is made as final, that method cannot
be override.
·
If any class is made as final, that class cannot be
used to extend.
No comments:
Post a Comment