Errata
The errata list is a list of errors and their corrections that were found after the product was released.
The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.
Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted by | Date submitted |
---|---|---|---|---|
Printed | Page 11 First paragraph |
Contrary to the first sentence, "public Point3D getLocation()" looks perfectly normal |
Anonymous | |
Printed | Page 12 1st Paragraph |
"Basic Multilingual Plan" |
Anonymous | |
Printed | Page 15 last paragraph |
"...Java has a gaping hole that Tiger finally fills -- the ability to create type- |
Anonymous | |
Other Digital Version | 16 1st paragraph at the end of 1st sentence |
In the sentence: "...you're used to seeing StringBuilder used." |
Alex | Jun 18, 2009 |
Printed | Page 23 2nd complete code snippet (don't count the one starting on page 22) |
The "Iterating Over Parameterized Types" section on page 19 explains that for/in |
Anonymous | |
Printed | Page 27 Last paragraph before "What about..." section |
Here, there's an example of an illigal cast |
Anonymous | |
Printed | Page 30 1st paragraph |
the sample code |
Anonymous | |
Printed | Page 31 last line and last code |
The code snippet of "biggest" is wrong. The code cannot be compiled. |
Anonymous | |
Printed | Page 33 second code snippet |
The paragraph between the 2 code snippets suggest that the two are equivalent, but |
Anonymous | |
Printed | Page 38 The description of valueOf method and warning. |
valueOf method generated by the javac compiler is a static method. Therefore there is |
Anonymous | |
Printed | Page 45 2nd paragraph, 2nd sentence |
"the switch statement (in a different unit)..." |
Anonymous | |
Printed | Page 48-50 The explanation of Set of Nums is incorrect and example 3-5 is wrong. |
Anonymous | ||
Printed | Page 49 First paragraph (after end of code listing) |
Sentence states "These are all features, and are all represented by powers of two." |
Anonymous | |
Printed | Page 50 1st snippet of code |
Change: |
Anonymous | |
Printed | Page 65 1st paragraph |
'unboxed' |
Anonymous | |
Printed | Page 80 3rd and 5th code snippets |
Change: |
Anonymous | |
Printed | Page 88 Section titled "Suppressing Warnings" |
With Tiger, @SuppressWarnings annotation is not supported by the javac compiler. |
Anonymous | |
Printed | Page 91 The paragraph after Example 6-5, 4th line |
"the compiler then automatically creates member variable with the same name" is not |
Anonymous | |
Printed | Page 103 3rd line in example testGetAnnotation(PrintStream out) |
There is no type "MethodElement" in java.lang.reflect. |
Anonymous | |
Printed | Page 117 Margin note |
It's not at all clear what the margin note refers to. I can't see |
Anonymous | |
Printed | Page 120 first code example |
list is named 'wordList' but you're iterating over 'args' |
Anonymous | |
Printed | Page 121 first paragraph |
The sentence "However, this rather simple task is impossible with for/in, because the variable that is used to do all the work, i, is inaccessible in a for/in loop." is completely wrong. It is easy (and IMHO better programming practice) to use for/in to accomplish this "impossible" task, as shown below. Two methods, one using a counted loop (the book's approach), the other using for/in, are presented below for comparison (and in case anyone wishes to actually test or benchmark them, as I did before writing this): |
Anonymous | |
Printed | Page 142 3rd paragraph |
Nowhere in the section called "Handling Uncaught Exceptions in Threads" does it mention that these exceptions must be "unchecked" exceptions ( derived from java.lang.RuntimeException, maybe others ). You will get compiler errors if you attempt this method with the more normally used "checked" exceptions. |
Anonymous | |
Printed | Page 146 2nd paragraph |
Thread.setUncaughtExceptionHandler(new MyDefaultHandler( )); |
Anonymous | |
Printed | Page 153 4th paragraph |
The description of the convert method uses the word "direction" whereas the convert method's first parameter is called "duration". |
Anonymous | |
Printed | Page 173 Index |
"(BMP) Basic Multilingual Plan" |
Anonymous |