Answers to Self-Review Exercises

10.1

a) abstract.

b) concrete.

c) Polymorphism.

d) abstract.

e) downcasting.

10.2

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.

10.3

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.