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! Facebook Page Twitter Page Certexams on YouTube 

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