Which of the following statements about interfaces is false?
A) An interface describes a set of methods that can be called on an object,providing a default implementation for the methods.
B) An interface describes a set of methods that can be called on an object,not providing concrete implementation for the methods.
C) Interfaces are useful when attempting to assign common functionality to possibly unrelated classes.
D) Once a class implements an interface,all objects of that class have an is-a relationship with the interface type.
Correct Answer:
Verified
Q2: The UML distinguishes an interface from other
Q4: Every object in Java knows its own
Q5: Declaring a method final means:
A) it will
Q8: If the superclass contains only abstract method
Q14: Which of the following could be used
Q18: Which of the following does not complete
Q19: It is a UML convention to denote
Q21: A class that implements an interface but
Q27: Which of the following is not possible?
A)
Q32: Interfaces can have _methods.
A) 0
B) 1
C) 2
D)
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