5 Methods
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 related classes.
How to use secure 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 methods.
Get Java How To Program, Late Objects, 11th 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.