This Keywords

PHOTO EMBED

Sun Oct 29 2023 17:34:02 GMT+0000 (Coordinated Universal Time)

Saved by @Mohamedshariif #java

public class ThisExample {

	
	int a = 10;      //instance variable
	void display() 
	{
		int a = 200;      //Local variable
      
		System.out.println("Local Variable = " + a);
		System.out.println("İnstance variable = " + this.a);
	}
	
	public static void main(String[] args) {
		
		ThisExample obj = new ThisExample();
		obj.display();

	}

}
//Output: 
Local Variable = 200
İnstance variable = 10
content_copyCOPY