what is the difference between final and constant
1) In final keyword the value of variable remain constant throughout the execution of program. And constant also remains unchanged but we can inherit the constant variable.
2) Final can be used with variable, methods or class, and we use constant with variables
3) Constant value is identified when program is running whereas final value may or may not be recognized at runtime.