Which of the following statements about interfaces is true?
A) You can define an interface variable that refers to an object of any class in the same package.
B) You cannot define a variable whose type is an interface.
C) You can instantiate an object from an interface class.
D) You can define an interface variable that refers to an object only if the object belongs to a class that implements the interface.
Correct Answer:
Verified
Q11: To use an interface, a class header
Q12: _ can reduce the coupling between classes.
A)
Q13: Which statement about methods in an interface
Q14: Suppose you are writing an interface called
Q15: Which of the following statements about converting
Q17: A method that has no implementation is
Q18: Which of the following statements about interfaces
Q19: Consider the following code snippet: public interface
Q20: Which of the following is true regarding
Q21: In Java, _ can be used for
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