Solved

Assume a Class Implements Two Interfaces, Both of Which Define

Question 25

Multiple Choice

Assume a class implements two interfaces, both of which define a default method with the same signature.Which statement is true about this conflict of inherited methods?


A) The code compiles but generates an exception at run time due to the conflict.
B) The code compiles and the implementation is chosen at run time.
C) The class must override the method and provide its own implementation.
D) There is no conflict because interfaces cannot provide method implementation.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents