The final
modifier keyword that the programmer cannot change the value anymore.
Following is
what happens when it is applied on classes, variables or methods.
- final
Classes- A final class cannot have subclasses.
- final
Variables- Once initialized, a final variable cannot be changed.
- final
Methods- A final method cannot be overridden by subclasses
No comments:
Post a Comment