Multiple Choice
Look at the following code. Which line will cause a compiler error?
Line 1 public class ClassA
Line 2 {
Line 3 public ClassA() {}
Line 4 public int method1(int a) {}
Line 5 public final int method2(double 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
B) 5
C) 10
D) 11
Correct Answer:

Verified
Correct Answer:
Verified
Q47: This is a special type of expression
Q48: Which of the following statements correctly specifies
Q49: Which of the following is an example
Q50: An anonymous inner class must:<br>A) implement an
Q51: Look at the following code. Line 1
Q53: When an "is a" relationship exists between
Q54: In the following statement, which is the
Q55: Which of the following statements declares Salaried
Q56: If a class contains an abstract method:<br>A)
Q57: Look at the following code: Line 1