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.

c. When you enhance an existing interface with default methods—any class that implemented the original interface will break. Actually, when you enhance an existing interface with default methods—any class that implemented the original interface will not break—it’ll simply receive the default method implementations.

Computer Science & Information Technology

You might also like to view...

Another term for malicious software is ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

When using the QUARTILE.INC function which quartile would include the lowest value in the dataset?

A) 0 B) 1 C) 2 D) 3

Computer Science & Information Technology