Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

D. Methods: A Deeper Look

D. Methods: A Deeper Look

Objectives

In this appendix 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.

• 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 methods.

D.1 Introduction

D.2 Program Modules in Java

D.3 static Methods, static Fields and Class Math

D.4 Declaring Methods with Multiple Parameters

D.5 Notes on Declaring and Using Methods

D.6 Method-Call Stack and Activation Records

D.7 Argument Promotion and Casting

D.8 Java API Packages


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint