Explain why final keyword is used in Java

: 217
Paper : Java FAQ (Frequently Asked Questions and answers) for freshers | Platform : Object-oriented programming Language | Category : Programming FAQs

The final keyword has a very special meaning in java. It has a different meaning in a different concept:

final variable: The value of the variable can not be modified once it is assigned. When a final keyword is used with the class variable then only the constructor can assign value to the final variable.

final method: You cannot override the method if it is declared with the final keyword.

final class: The class cannot be extended to any other class but it can extend other classes.