The final modifier keyword makes that the programmer cannot change the value
anymore. The actual meaning depends on whether it is applied to a class, a
variable, or a method.
- · final Classes- A final class cannot have sub classes.
- · final Variables- A final variable cannot be changed once it is initialized.
- · final Methods- A final method cannot be overridden by sub classes.
No comments:
Post a Comment