hi,
the following programm gives compilation error.
actually all instance variables should be initialized to their default value,but in this case the programm giving comilation error saying :"variable i might not have been initialized"
can any body explain .....?
is there any rule saying final instance variable doesn't get auto initialization
**********************************************
public class MyClass
{
final int i ;
public static void main(
String[] arguments)
{
System.out.println(new MyClass().i);
}
}
**********************************************