Question: public class A { static int x = 2 ; public System.out.println ( x ) ; x + + ; } public A ( int

public class A {
static int x=2;
public
System.out.println(x);
x++;
}
public A(int x){
this();
this. x+=x;
System.out.println(x);
}
public int x, int y
this (x+y);
}
public static void main(String args[])
A al=new A();
A a2=new A(2);
A a3= new A(0,1);
}
}
 public class A { static int x=2; public System.out.println(x); x++; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!