6. Methods: A Deeper Look
Form ever follows function.
—Louis Henri Sullivan
E pluribus unum. (One composed of many.)
—Virgil
O! call back yesterday, bid time return.
—William Shakespeare
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.
About argument promotion and casting.
How packages group ...
Get Java™ How To Program (Early Objects), Tenth 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.