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 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.