What is required for an interface method that has a body?
A) The method header must begin with the key word default.
B) A class that implements the interface must override the method.
C) The @Default annotation must precede the method header.
D) All of these are true.
Correct Answer:
Verified
Q21: What type of relationship exists between two
Q22: If a method in a subclass has
Q23: Which key word indicates that a class
Q24: Which of the following is an example
Q25: _ is a special type of expression
Q27: If you don't provide an access specifier
Q28: _ tells the Java compiler that a
Q29: In an inheritance relationship _.
A) the subclass
Q30: When an "is a" relationship exists between
Q31: In a class hierarchy _.
A) the more
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