Answers to Self-Review Exercise

8.1
  1. -d.

  2. format.

  3. shadows.

  4. finalize.

  5. single-type-import.

  6. default constructor.

  7. toString.

  8. accessor methods, query methods.

  9. predicate.

  10. values.

  11. has-a.

  12. enum.

  13. static.

  14. single static import.

  15. principle of least privilege.

  16. final.

  17. abstract data type (ADT).

  18. package declaration.

  19. type-import-on-demand.

  20. class loader.

  21. -classpath, CLASSPATH.

  22. mutator methods.

  23. static import on demand.

  24. public services, public interface.

  25. gc.

  26. consistent data.

Get Java™ How to Program, Seventh 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.