Multiple Choice
Look at the following code. Which line in ClassA has an error?
Line 1 public interface MyInterface
Line 2 {
Line 3 int FIELDA = 55;
Line 4 public int methodA(double) ;
Line 5 }
Line 6 public class ClassA implements MyInterface
Line 7 {
Line 8 FIELDA = 60;
Line 9 public int methodA(double) { }
Line 10 }
A) 6
B) 7
C) 8
D) 9
Correct Answer:

Verified
Correct Answer:
Verified
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
Q57: When declaring class data members it is
Q58: All fields declared in an interface:<br>A) are
Q60: What is wrong with the following code?<br>Public
Q62: Look at the following code. Which line
Q63: When an interface variable references an object,
Q64: Look at the following code. Line 1