public void test() { System.out.println("x = " + x); } } A : x = 10 B : x = 20 C : The program cannot be compiled due to line //1. D : The program cannot be compiled due to line //2. E : The program cannot be compiled due to line //3. F : The program cannot be compiled due to line //4.

Even though the type of s is Super, the type of the object that it references is of type Test. This is possible because Testis aSuper by virtue of inheritance. The test() method overrides the test() method of the Super class, and when you call s.test() you call that method (the one in Test) because of what the object is.