Which statement regarding the following code is correct?
class A{
public int i = 10;
private int j = 20;
}
class B extends A{
private int i = 30; //1
public int k = 40;
}
class C extends B{
}
public class TestClass{
public static void main(String args[]){
C c = new C();
System.out.println(c.i); //2
System.out.println(c.j); //3
System.out.println(c.k);
} }
Select 1 option
A. It will print 10 and 40 if //3 is commented.
B. It will print 40 if //2 and //3 are commented.
C. It will not compile because of //1.
D. It will compile if //2 is commented.
E. None of these.