8. Classes and Objects: A Deeper Look

Objectives

In this chapter you’ll:

Image See additional details of creating class declarations.

Image Use the throw statement to indicate that a problem has occurred.

Image Use keyword this in a constructor to call another constructor in the same class.

Image Use static variables and methods.

Import static members of a class.

Use ...

Get Java® 9 for Programmers, Fourth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.