6. Methods: A Deeper Look

Objectives

In this chapter you’ll learn:

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

Image About argument promotion and casting.

Image How packages group related classes.

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

How the visibility of declarations is limited ...

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.