posted 16 years ago
Hi
fianl keyword specifies something that the definition dont be changed. if it is a variable, the value wont be changed, for a method, it wont overriden and for a class, it wont inherit. upon inherit, the properties and methods may change.
in case of a private method to be final, there is no specific meaning. because, final method is the one cant be overrided. the private class itself cant be overrided.
The only differnce is that, when a subclass given definition to a private final method in its super class, it will compile fine(Because the methods dont have a relation- they are just two independednt methods). but when you give a definition for a final method(not private), ot will give a compilation error- "Cannot Override a final method"
Thanks<br /> <br />Anoobkumar<br />SCJP 1.5