How can we write program by using the this, super keywords?

class A

{

int x=15;

}

class B extends A

{

  int x=10;

  

void show()

   {

int x=5;

System.out.println(super.x); 

System.out.println(this.x);

System.out.println(x);

}

public static void main(String args[])

{

B b=new B();

b.show();

}

} 

 

output

15

10

5