In 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) Line 6
B) Line 7
C) Line 8
D) Line 9
Correct Answer:
Verified
Q39: Which of the following is true about
Q40: All methods specified by an interface are
Q41: In the following statement, which is the
Q42: Given the following code: Line 1 public
Q43: A class becomes abstract when you place
Q45: In the following code, what is missing
Q46: Protected class members can be denoted in
Q47: Which of the following statements declares Salaried
Q48: If ClassC is derived from ClassB which
Q49: In the following code, what will the
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents