6. Methods: A Deeper Look

The greatest invention of the nineteenth century was the invention of the method of invention.

Alfred North Whitehead

Call me Ishmael.

Herman Melville

When you call me that, smile!

Owen Wister

Answer me in one word.

William Shakespeare

O! call back yesterday, bid time return.

William Shakespeare

There is a point at which methods devour themselves.

Frantz Fanon

Objectives

In this chapter you will learn:

  • How static methods and fields are associated with an entire class rather than specific instances of the class.

  • To use common Math methods available in the Java API.

  • To understand the mechanisms for passing ...

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.