I want to know about that error "variable Y not initialized in the default constructor" what happens internally...
static final int y;
public static void main(String[] as){
System.out.println(y);
}
- I've used static variable not instance but sill i got.
- Why it is only initilzed in sameline or static block .
- What is the roll of default constructor.