I came across this particular behavior while working but I am not really sure what is the issue here. As per me Static keyWord has some feature as
1. Belongs to class rather than object.
2. Static method can access static instance variable of the class.
But can some one please expain the particular behavior:
public static final int x=12;
public static void go(final int x){
System.out.println(this.x);
}
while writing this particular line I am getting complile time error at printing statement "this.x" in Eclipse as "can't use this in static conetext".
Can some one explain what is missing in my understanding??