final variables cannot be reinitialized once assigned a value.
final reference variables cannot refer to a different object once the object has been assigned.
final reference variables must be initialized before the constructor completes.
final is the only modifier available to local variables.
final methods cannot be overridden in a subclass.
public class MainClass{
final int i = 0;
i= 1; // error
public static void main(String[] argv){
}
}
|