public class Q34
{
static int a;
int b;
public Q34()
{
int c;
c=a;
a++;
b+=c;
}
public static void main(
String args[])
{
new Q34();
}
}
will the above code fail since the const is trying to
1)access static members
2)use st var a before it is initialised.
3)use mem var b before its init.
4)use local var c before init.
5)or it will compile
please throw some light