Multiple Choice
Look at the following code.The method in line ________ will override the method in line __________. Line 1 public class ClassA
Line 2 {
Line 3 public ClassA() {}
Line 4 public int method1(int a) {}
Line 5 public int method2(int b) {}
Line 6 }
Line 7 public ClassB extends ClassA
Line 8 {
Line 9 public ClassB() {}
Line 10 public int method1(int b) {}
Line 11 public int method2(double c) {}
Line 12 }
A) 4,10
B) 5,11
C) 10,4
D) 11,5
E) Both a and b
Correct Answer:

Verified
Correct Answer:
Verified
Q2: In UML diagrams, inheritance is shown:<br>A) With
Q9: Protected class members are denoted in a
Q10: Every class is either directly or indirectly
Q11: A subclass can directly access:<br>A) all members
Q13: An abstract class is not instantiated, but
Q18: In the following code,what will the call
Q19: In the following statement,which is the subclass?
Q39: If ClassC extends ClassB, which extends ClassA,
Q46: Which of the following is true about
Q63: When an interface variable references an object,