“Final” variable is a constant, once one variable declare with final than during whole program can not change this variable value.

EX. final public static int a = 5;

After declare this statement you can not change the value of variable a.

Final Method

You can not overridden in any subclass. you can not use this final declare value to subclass.

Advertisements