O'Reilly logo

Java™ for Programmers: Deitel Developer Series, Second Edition by Harvey Deitel - Deitel & Associates, Inc., Paul Deitel - Deitel & Associates, Inc.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Methods: A Deeper Look

E pluribus unum. (One composed of many.)

Virgil

O! call back yesterday, bid time return.

William Shakespeare

Call me Ishmael.

Herman Melville

Answer me in one word.

William Shakespeare

There is a point at which methods devour themselves.

Frantz Fanon

Objectives

In this chapter you’ll learn:

• How static methods and fields are associated with classes rather than objects.

• How the method call/return mechanism is supported by the method-call stack.

• How packages group related classes.

• How to use random-number generation to implement game-playing applications.

• How the visibility of declarations is limited to specific regions of programs.

• What method overloading is and how to create overloaded ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required