In the Java programming language, the keyword "final" is used with different entity which makes it unchangeable later. We can have final methods, final classes, final data members, final local variables and final parameters.
1. variables: A final variable can be set once and only once.
2. methods: A final method cannot be overridden nor hidden.
3. classes: A final class cannot be extended. A final class implicitly has all the methods as final, but not necessarily the data members.
Liked it! Share this Tutorial