Which of the following states are true about class X?
class Base
{
int i = 0;
Base(int i) {this.i = i;}
}
public class X extends Base
{
X() {i = 5;}
public static void main(final String[] args)
{
X x = new X();
x.i = x.i * 2;
System.out.println("x.i = " + x.i);
}
}
A) Compiler error.
B) Output: x.i = 5
C) Output: x.i = 0
D) Output: x.i = -1
E) Output: x.i = 10