public class Test1910 {
float f;
Test1910(){
this(f);
f = 3;
}
Test1910(float f){
System.out.println(f);
}
public static void main(
String args[]) {
Test1910 t = new Test1910();
}
}
When I compile the above program, the compiler says,
"cannot reference f before supertype constructor has been called this(f)."
but if pass this(4) it compiles and runs.
Could anyone explain the compiler error.
Thanks in advance,
Mithran