Question: Which is the first declaration to not compile? A. The CanBurrow interface does not compile. B. The HasHardShell interface does not compile. C. The Tortoise
Which is the first declaration to not compile?

A. The CanBurrow interface does not compile.
B. The HasHardShell interface does not compile.
C. The Tortoise interface does not compile.
D. The DesertTortoise interface does not compile.
E. All of the interfaces compile.
package desert; interface CanBurrow { public abstract void burrow (); } @FunctionalInterface extends CanBurrow {} interface HasHardShell abstract class Tortoise implements HasHardShell { public abstract int toughness(); } public class DesertTortoise extends Tortoise { public int toughness () { return 11; } }
Step by Step Solution
3.40 Rating (150 Votes )
There are 3 Steps involved in it
The code provided represents a hierarchy of interfaces and classes in Java The interfaces and classes are designed with certain expected behaviors for ... View full answer
Get step-by-step solutions from verified subject matter experts
