book.html | TOC | CD-ROM | References | Errata | Tutorial Trail Map

Errata (second edition)

The following is a summary of the errors and ommissions that have been found in the first printing of the second edition of The Java Tutorial. If you find any that aren't listed here, please send them to tutorial@java.sun.com.

Page 50 -- Running the countChars Method
The code shown on this page has a typo. The 'S' on System.err should be capitalized. To compile the program change this line:
system.err.println("Usage: Count filename");
to this:
System.err.println("Usage: Count filename");

Page 53 -- Variable Names
List item "1" incorrectly refers to the Russian alphabet. It should refer instead to the Cyrillic alphabet.

Page 70 -- Code Sample at Top of Page
The code sample found at the top of the page has the the same problem as the code on page 50.

Page 138 -- Being a Descendent of Object
The hashCode method is incorrectly listed as final. hashCode is not final and may be overridden by subclasses.

Page 389 -- How to Write to an ObjectOutputStream
The second line of the code sample in this section has a typo. The bold text
ObjectOutputStream s = new ObjectOutputStream(f);
should be changed as indicated:
ObjectOutputStream s = new ObjectOutputStream(out);


book.html | TOC | CD-ROM | References | Errata | Tutorial Trail Map