Multiple Choice
Look at the following code. Which line has an error?
Line 1 public interface Interface1
Line 2 {
Line 3 int FIELDA = 55;
Line 4 public int methodA(double) {}
Line 5 }
A) 1
B) 2
C) 3
D) 4
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q21: If you do not provide an access
Q23: If ClassA extends ClassB, then:<br>A) public and
Q24: In the following statement, which is the
Q25: Given the following code which of the
Q27: In an inheritance relationship, the subclass constructor
Q27: When a method is declared with the
Q28: In an interface all methods have:<br>A) private
Q29: In a class hierarchy:<br>A) the more general
Q31: Look at the following code: Line 1
Q32: A subclass may call an overridden superclass