Java Reference
In-Depth Information
5.1
Static Methods and Static Variables
253
Static Methods
253
5
Static Variables
260
The
Math
Class
265
Wrapper Classes
269
Automatic Boxing and Unboxing
270
Static Methods in Wrapper Classes
272
5.2
References and Class Parameters
276
Variables and Memory
277
Defining Classes II
References
278
Class Parameters
283
The Constant
289
null
The
new
Operator and Anonymous Objects
290
Example: Another Approach to Keyboard Input
291
5.3
Using and Misusing References
295
Example: A Person Class
296
Copy Constructors
305
Mutable and Immutable Classes
311
5.4
Packages and
javadoc
314
Packages and
Statements
315
import
The Package
316
java.lang
Package Names and Directories
316
The Default Package
319
Specifying a Class Path When You Compile
320
Name Clashes
321
Introduction to
322
javadoc
Commenting Classes for
322
javadoc
Running
324
javadoc
Chapter Summary
326
Answers to Self-Test Exercises
327
Programming Projects
331
Search WWH ::




Custom Search