Answers to Self-Review Exercises
a) abstract.
b) concrete.
c) Polymorphism.
d) abstract
.
e) downcasting.
a) False. An abstract class can include methods with implementations and abstract
methods.
b) False. Trying to invoke a subclass-only method with a superclass variable is not allowed.
c) False. Only a concrete subclass must implement the method.
d) True.
a) default
methods.
b) static
.
c) functional interface.
Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.