Can anyone explain the output and the function of this keyword in these two programs
public class Sample { int ivalue; double dvalue=1.7; Sample(int ivalue,double dvalue ) { System.out.println(ivalue+dvalue); System.out.println(this.ivalue+this.dvalue); } public static void main(String[] args) { Sample ref=new Sample(25,3.19); System.out.println(ref.ivalue); System.out.println(ref.dvalue); Sample ref1 =new Sample(19,9.1); System.out.println(ref.ivalue); System.out.println(ref.dvalue); } } Scenario2 public class Sample { int ivalue; double dvalue=1.7; Sample(int ivalue,double dvalue ) { System.out.println(ivalue+""+this.devalue); System.out.println(ivalue+""+this.dvalue); this.ivalue=ivalue; this.dvalue=dvalue; } public static void main(String[] args) { Sample ref=new Sample(25,3.19); System.out.println(ref.ivalue+" "+ref.dvalue); Sample ref1 =new Sample(19,9.1); System.out.println(ref.ivalue); System.out.println(ref.dvalue); } }