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 36 Halfway down the page |
Missing "import javax.swing.*;" before "import java.awt.*;". If you place the HelloComponent in its own file the java compiler will not find JComponent as it is not in the java.awt name space. |
Anonymous | |
Printed | Page 39 diagram at top of page |
The "HelloJava1" class in the diagram should be "HelloComponent." This is because in |
Anonymous | |
Printed | Page 39 Figure 2-2 |
HelloJava1 is shown. This should be HelloComponent. |
Anonymous | |
Printed | Page 49-51 example code |
The supplied code on pages 49 to 51 for program called HelloJava3 does not compile. Neither the example downloaded from the webpage or the code printed in the book. Netbeans complains about the class HelloComponent not beeing an abstract class and that it cannot override abstract method actionPerformed in java event actionListener. |
Anonymous | Feb 12, 2012 |
Printed | Page 79 code snippet near bottom of page |
The code snippet involves creating a socket with the IP address: 207.46.131.13. When Note from the Author or Editor: |
Anonymous | |
Printed | Page 86 Table 4-1 |
States that @since only applies to variables, but I think that it also applies to classes and methods as well. |
Stephen | Dec 07, 2009 |
Printed | Page 246 3rd paragraph, 2nd Sentence |
Says: |
Anonymous | |
Page 264 2nd paragraph under the section "Why Isn't a List<Date> a List<Object>?" |
You write: |
Lane Surface | Jan 02, 2019 | |
Printed | Page 267 public class Producer implements Runnable{ |
Was under the assumption that the Producer class was an inner class of Consumer (no import statement(s) before class declar... |
Anonymous | |
Printed | Page 267 "main" method - middle of page |
Producer and Consumer are printed as two public classes in one file. Java won't compile this file because it is looking for two separate public classes. Although your downloaded example splits this into two class files, page 268 says: "You can run the example as follows:..." Confusing to the novice programmer. |
Anonymous | Feb 15, 2012 |
Printed | Page 268 getMessage() method |
In the while loop of the getMessage() method, you call a notify(). This is probably useless. Notify can only wake up the producer as getMessage() is only called by the consumer. |
Pierre Nugues | May 28, 2009 |
Page 273 Third paragraph under "Bounded Wildcards" |
(Page 233 in the printed version of the third edition. Location given above is for the fourth edition.) |
Lane Surface | Jan 03, 2019 | |
Printed | Page 341 It's missing! |
My copy brought several months ago in the UK contains pages 1-340 (ie chapters 1-10) |
Anonymous | |
Other Digital Version | 400 Location 8975 of 38331 (Kindle version) |
In the section "Why isn't a List<Date> a List<Object>, you write: |
sheeptick | Apr 24, 2012 |
Page 410 In Class ListIt example |
Line # 5 contains "File file = new File(args[0]);" |
Jeffery E. Bell | Jul 26, 2011 | |
Printed | Page 411 first example |
Two logical lines have unmatched types: |
Roger R | Aug 20, 2011 |
Printed | Page 415 code in 3rd paragraph |
BufferedReader bufferedCharsIn = new BufferedReader( inReader ); |
yantao zhang | Oct 06, 2017 |
510 First Code snippet |
In this snippet. |
Anonymous | May 21, 2012 | |
Printed | Page 697 example program Iguana.java |
This is really a question about the eclipse IDE. The Iguana program on page 697 runs correctly when run from the command line, but not when run within eclipse. The image "Piazza di Spagna.small.jpg" does not display when the program is run from within eclipse. My question is whether I may post the code on an eclipse forum and have someone look at it. I am trying to develop a program that displays images similar to Iguana, so this issue is important to me. Thank you. |
Doug Wong | Dec 01, 2009 |
Printed | Page 850 SAX Example -Chapter 24 |
Page number might be incorrect. I am viewing this on the Oreilly book shelf |
Anonymous | |
Printed | Page 872 1st paragraph ("Building the Ant-Based Examples") |
The penultimate sentence of this paragraph directs users to build the magicbeans.jar |
Anonymous | |
Printed | Page 903ff entire index - especially pages 903-907; 927-934; etc. |
More of an annoyance than an error: when looking for something in your index, I often |
Anonymous |