Errata

Java 8 Pocket Guide

Errata for Java 8 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. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
PDF
Page 46
first code example

The example code

private String startUp(District d) throws new
IOException {...}

should be

private String startUp(District d) throws
IOException {...}

Note from the Author or Editor:
Thank you for the errata. This has been changed for JPG, 4th Edition.

Yu Zhao  Jul 27, 2016 
PDF
Page 12
1st paragraph

The paragraph

Several ASCII characters delimit program parts and are used as
separators. (), { }, and [ ] are used in pairs:

is missing < > angle brackets.

It should read:

Several ASCII characters delimit program parts and are used as
separators. (), { }, [ ], and < > are used in pairs:

Note from the Author or Editor:
Thank you for the errata. The change has been made for JPG, 4th Edition.

Andrew McCauley  Oct 13, 2015 
Printed
Page 13
table, precedence 6

The java operator table is missing the symbol for the unsigned right shift operator (>>>).

Also, both on this page (precedence 7) and on page 14 (precedence 15), the character combination of '<=' is erroneously replaced by a leftwards arrow (⇐ ).

Note from the Author or Editor:
Thank you for the errata, this was changed for the JPG, 4th edition.

Hayo Baan  Sep 29, 2015 
PDF, ePub
Page 139
Example code

Text claims that the sample shows "an easy way to start a thread".

It doesn't. The sample creates an instance of a Thread subclass, then invokes a method on that subclass synchronously by calling its run() method. The better solution would be to invoke start().

The same mistake is made in both samples on p140.

This is a critical mistake; without the fix, the code won't run concurrently at all.

Note from the Author or Editor:
Thank you for the errata. JPG, 4th edition has been updated.

Paul Bennett  Jun 09, 2014 
Mobi
2nd paragraph, chapter 12

Location 4020 of 8005

"for+matting" should read "formatting"

Note from the Author or Editor:
Thank you for the errata. The change has been made for JPG, 4th Edition.

Barett McGavock  May 12, 2014 
Mobi
Precedence 7

Location 511 of 8005

Operator <= is rendered as a single arrow characters. Should be rendered as two characters: less than, equals.

Note from the Author or Editor:
Thank you for the errata. This was fixed in three places for the JPG, 4th Edition.

Barett McGavock  May 12, 2014 
Printed
Page 8
in ASCII character table

The character for 99 should be lower case 'c' - not capital.

The character for 115 should be lower case 's' - not capital.

Robert Liguori
Robert Liguori
 
Apr 29, 2014 
Printed
Page 15
Chapter 2, Literals, Integer Literals

publis

should read:

public

Robert Liguori
Robert Liguori
 
Apr 29, 2014 
Printed, PDF
Page 15
Chapter 2, Literals, Integer Literals

The following line appears as:

publis static final int INT_VALUE = -200


when it should read:

public static final int INT_VALUE = -200

Note from the Author or Editor:
yes, "publis" should read "public".

Thank you.

Fabiano  Apr 26, 2014