Assume that an object of the following class has just been created:
public class Unknown{
private int x;
public Unknown(){
x = 17;
method1();
method2(5);
method3();
System.out.println(x); // Line D
}
public void method1(){
--x;
int x = this.x;
x++;
System.out.println(this.x); // Line A
}
public void method2(int x){
x++;
System.out.println(x); // Line B
}
public void method3(){
--x;
int x = 2;
x++;
System.out.println(x); // Line C
}
}
What output is produced by Line A when an instance of this class is created?
There are no hints for this question