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.


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

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

Anonymous said...

Perfect definition.

Anonymous said...

If the keyword final is specified before any method,that couldn't be overloaded.if it is specified before class.that class can't be inherited.if it is specified before variable,that couldn't be remodified


Interview Questions On Java,Java EE Copyright © 2017. Reads: best tracker