Analyze the following code:
public class Test {
public static void main(String[] args) {
}
}
class A {
int i = 7;
public A() {
| System.out.println("i from A is " + i); |
}
public void setI(int i) {
}
}
class B extends A {
public B() {
| // System.out.println("i from B is " + i); |
}
public void setI(int i) {
}
}
◦ The constructor of class A is called and it displays "i from A is 60".
◦ The constructor of class A is called and it displays "i from A is 40".
◦ The constructor of class A is called and it displays "i from A is 7".
◦ The constructor of class A is not called.