this keyword in java
Local Variable Hides Instance Variable In java when the local variable has the same name as an instance variable, the local variable hides the instance variable. public class Test { int a=10, b=10;// instance variable a,b public static void main(String agrs[]) { Test t = new Test(); t.display(); } public void display() { int a … Read more