Thursday, March 12, 2009

What does the "final" keyword mean in front of a variable A method A class

Question :What does the "final" keyword mean in front of a variable? A method? A
class? (CoreJava)

Answer :FINAL for a variable : value is constant
FINAL for a method : cannot be overridden
FINAL for a class : cannot be derived

No comments: