Saturday, June 7, 2008

What is final ?

  • A final is a keyword in java.
  • If final keyword is applied to a variable, then the variable will become a constant.
  • If final keyword is applied to method, sub classes cannot override the method.
  • If final keyword is applied to a class we cannot extend from that class.

No comments: