Final Keyword in java
Jun 22nd, 2011No Comments
Final
Final is keyword in java
Final With Variable
Final Variable can be declared either block level or instance level
Final Variable can be initialized only once. Re-initialization causes a compile time error
Final Method
Final Methods behaves like constants these methods are not allowed to override in child classes
Final Methods won’t participate with abstract,private Keywords
Final Class
Final Class behaves like constant
Final Class can’t act as a base class in inheritace
Yep.... I couldn't have said it better myself......