Java SE 8 Programmer II Practice Questions

Previous   Next

9. Which of the following statements about default methods in interfaces is true?

A default method must have a body.

A default method cannot be overridden by a class that implements the interface.

A class can implement multiple interfaces that have the same default method with different implementations.

A default method can access private instance fields of the implementing class.




Your Answer =


Answer / Explanation:

CertExams Blog!  Certexams.com Facebook Page Certexams.com Twitter Page Certexams on YouTube 


Cert-Ex™ Exam Simulators, Cert-Ex™ Network Simulator, Cert-Ex™ Cheatsheets are written independently by CertExams.com and not affiliated or authorized by respective certification providers. Cert-Ex™ is a trade mark of CertExams.com or entity representing Certexams.com.Java™ is a trademark of Oracle® Corporation