Minor Errata for
The Java Programming Language
Fourth Edition
by
Ken Arnold, James Gosling and David Holmes
First Printing
"Well, if you can't believe what you read in a comic
book,
what can you believe?!"
-- Bullwinkle J. Moose [Jay Ward]
This page contains the minor errata -- typos, grammatical errors, font and
layout problems -- in the first printing of the book. You may also want to view
the list of technical errata -- those things
that are wrong or lead you astray -- especially before you email us about an
error.
You can tell which printing you have by looking at the bottom of the
copyright page (the page that faces the dedication page, and starts with
"Copyright © 2006 by Sun Microsystems, Inc."). The last line on this
page gives the printing number and date.
If you find an error in the book, please check to see if it is already known
before reporting it. If you do not find it in the list, please mail
us the relevant information, including page numbers. All errata will be
fixed in the next possible printing. We are thankful to all
those who have reported errata.
Errata for all printings:
CHAPTER 1: A Quick Tour
CHAPTER 2: Classes and Objects
CHAPTER 3: Extending Classes
- On page 100 in the paragraph after the toString description, in
the final sentence where it says "any two different objects are not
equal", the word "equal" should not be in code font.
CHAPTER 4: Interfaces
CHAPTER 5: Nested Classes and Interfaces
CHAPTER 6: Enumeration Types
- Page 154, Section 6.2.1. The first sentence after the list of enum
modifiers should read:
When multiple modifiers are applied to the same enum declaration
...
not "same interface declaration".
- Page 155, Section 6.3.1. In the paragraph under the declaration of the Suit
enum, in the last sentence the word "the" should not be in code
font.
CHAPTER 7: Tokens, Values and Variables
CHAPTER 8: Primitives as Types
CHAPTER 9: Operators and Expressions
CHAPTER 10: Control Flow
- Page 240, Section 10.5.2. The first sentence of the paragraph between
the two code fragments incorrectly refers to the variable i instead
of the variable val. It should read:
The for statement is read "for each val in values"
and each time through the loop we add the next value, val, to the
sum.
CHAPTER 11: Generic Types
CHAPTER 12: Exceptions and Assertions
CHAPTER 13: Strings and Regular Expressions
CHAPTER 14: Threads
CHAPTER 15: Annotations
CHAPTER 16: Reflection
CHAPTER 17: Garbage Collection and Memory
CHAPTER 18: Packages
CHAPTER 19: Documentation Comments
CHAPTER 20: The I/O Package
CHAPTER 21: Collections
CHAPTER 22: Miscellaneous Utilities
CHAPTER 23: System Programming
CHAPTER 24: Internationalization and
Localization
CHAPTER 25: Standard Packages
APPENDIX A: Application Evolution
APPENDIX B: Useful Tables
Further Reading
Index