posted 19 years ago
As you know the output of your program will be
because, in case of conflicting variable names the method m1 will prefers the local variable.
If you want to access the variable i1 defined at (1) then you have to provide the class name as the qualifier.