In method or class scope, the line below compiles (with warning):
int x = x = 1;
In class scope, where variables get their default valu
Complier read statements from right to left and we designed to do the opposite. That's why it annoyed at first. Make this a habbit to read statements (code) from right to left you won't have such problem.