What must a non-abstract Java class do when it implements an interface?
Correct answer D. Provide a body for every abstract method it inherits
Explanation
A concrete class may not be left with unimplemented abstract methods, so it must define them or inherit implementations from a superclass. Default methods can be used unchanged, and constants are inherited automatically. Interfaces have no constructors to call. A class that does not wish to implement everything must itself be declared abstract.
Answer checked How we write and check questions
Discussion