public class Honley{
public static int i =99;
public static void main(
String argv[]){
Honley h = new Honley();
h.wine();
}
public void wine(){
i = 10;
int i = 20;
System.out.println(this.i);
}
}
The output is : Compile and prints 10.
I thought it would print 20..can anyone explains why it prints 10