FINAL keyword in Java Language

Jun 3, 2009

  1. Final is a keyword which can be used with variables, methods and classes.
  2. If we declare any variable as final, it will be constant.
  3. If we declare any method as final, it cannot be overridden.
  4. If we declare any class as final, it can’t be inheritance.
  5. Final is the only modifier which can be used with local variables.
  6. Delay initialization of final variable are possible only within constructor.
  7. Final variables will never get default variables.



 
 
 
free counters 
HTML Hit Counter