36 Program to demonstrate use of this keyword in Java Atharva Satyendra Agrawal January 17, 2019 Atharva Satyendra Agrawal Code: class Abc { int a,b; Abc( int a, int b ) { this.a=a; this.b=b; } } class Main { public static void main( String args[]) { Abc obj1 = new Abc(5,10); System.out.println("A :"+obj1.a); System.out.println("B :"+obj1.b); } } Output: Tweet Share Share Share Related Post