In Java, final is a keyword. It has the following impact on variables, methods, and classes:
- If a variable declaration is preceded by the final keyword, then its value cannot be changed in the program.
- If in a method declaration, the method name is preceded by the final keyword, then that method cannot be overridden.
- If in a class declaration, the class name is preceded by the final keyword, then that class cannot be inherited.