Final keyword in java is for immutability or providing non-accessibility. This can be applied at a method level and variable level.
- If a method is declared as final, that method cannot be overridden from the subclass.
- If a variable is declared as final, that variable cannot be modified after assignment.