//use of this
keyword(here local variable call because var name is same in class and method)
class seven
{
int a=10;
int b=21;
void add(int a , int b)
{
System.out.println(a+b);
System.out.println(this.a + this.b);
}
public static void main(String args[])
{
seven e=new seven();
e.add(7,8);
//System.out.println(e.a);
//System.out.println(e.b);
}
}
output: