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.
You might also like to view...
The Visual Studio ____________ window allows you to navigate among the files in a Visual C# project.
a. Properties b. Designer c. Source d. Solution Explorer
What does this term stand for? VRRP
What will be an ideal response?
The conditional AND operator in Java, C++, and C# consists of ____.
A. %% B. && C. || D. **
A deployment option when no .msi file is available is to use a(n) ________ file
a. Exe file b. Bat file c. Rar file d. None of the above.