Errata

Java Pocket Guide

Errata for Java Pocket Guide

Submit your own errata for this product.

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 31
Using the equals() method

The description of overriding the equals() method should explain that the argument to equals() must be an Object reference, not a reference to the class it is declared in. Perhaps suggesting that it be marked with an @Override annotation would also be a good idea.

Steve Chapel  Jul 13, 2011 
Printed Page 48
Annotations section

The Annotations section explains that @SuppressWarnings allows the programmer to selectively suppress warnings from the compiler, but gives no useful information about how to accomplish this task. I suppose I now know what to search for in Google, but I would expect a Pocket Reference to explain in detail.

Steve Chapel  Apr 30, 2013 
Printed Page 89
2nd paragraph

The paragraph on import doesn't explain what import does. Import simply allows abbreviations for class and static method names, which can always be spelled out without importing. It isn't required to make other modules visible like Python's import does. This section also doesn't explain static import such as import java.lang.Math.*;

Steve Chapel  Jul 14, 2011