Answers to Self-Review Exercise
a) static
import on demand.
b) format
.
c) shadows.
d) public
services, public
interface.
e) single-type-import.
f) default constructor.
g) toString
.
h) accessor methods, query methods.
i) predicate.
j) values
.
k) has-a.
l) enum
.
m) static
.
n) single static
import.
o) principle of least privilege.
p) final
.
q) type-import-on-demand.
r) mutator methods.
s) BigDecimal
.
t) throw
.
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.