Wednesday, April 18, 2007

Explain final modifier.

'final' modifier can be applied to classes, methods and variables and the features cannot be changed. final class cannot be subclassed, methods cannot be overridden and final variables are constants.

2 comments:

kundan atre on January 31, 2010 8:59 AM said...

In addition to above comment if variable is final, that can not be modify later on

Anonymous said...

Perfect definition.

 

Disclaimer
Interview Questions On Java,Java EE Copyright © 2012