Solved

Which of the Following Statements Is False

Question 12

Multiple Choice

Which of the following statements is false?


A) In Java SE 8, an interface may declare default methods-that is, public methods with concrete implementations that specify how an operation should be performed.
B) When a class implements an interface, the class receives the interface's default concrete implementations if it does not override them.
C) When you enhance an existing interface with default methods-any class that implemented the original interface will break.
D) With default methods, you can declare common method implementations in interfaces (rather than abstract classes) , which gives you more flexibility in designing your classes.

Correct Answer:

verifed

Verified

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

Related Questions