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 |
|---|---|---|---|---|---|
| Printed, PDF | Page xxxv 2nd and 4th paragraph and photo captions |
Names are spelled differently in the Text and the corresponding photos: Note from the Author or Editor: |
Fritz Pick | Aug 02, 2022 | May 30, 2025 |
Page pages 334 and 364 bottom half (both pages), 2nd code example |
On page 334 the original line reads: Note from the Author or Editor: |
Jørgen Lang | Sep 13, 2022 | May 30, 2025 | |
Page Chapter 3. Know your variables: Primitives and References 7th and 9th paragraph of chapter 3. |
The line entered as "Besides a type, a variable needs a name so that you can use that name in code." in the 7th paragraph of chapter 3 is reentered in the 9th paragraph of chapter 3 as "Besides a type, a variable needs a name so that you can use that name in code.". Note from the Author or Editor: |
Logesh Ponnusamy | Oct 04, 2022 | May 30, 2025 | |
Page Ch 5 - Just the new stuff Middle of page in graphic |
Section: Just the new stuff: #1 mentioned "break" see #4 below and it should be, see #3 below. There is no #4 in the code or in the image. |
Erik Weibust | Oct 11, 2022 | May 30, 2025 | |
Page Fireside Chats Chapter 12. Chapter 12. Tonight's Talk The for loop... |
Tonight's Talk forEach() vs. for loop |
Zoran Sambol | Sep 13, 2024 | May 30, 2025 | |
Page Page 77 “Java is pass-by-value” diagram |
There is an error in the diagram on page 77 of the print version. In step 3 of the “Java is pass-by-value” diagram, the receiving cup for the copied bits is labeled “Y”, but it should be “Z” to match the method signature void go(int z) and the explanation that says “the copy lands in z.” |
Hari Vemuri (submitted through O'Reilly customer support) | Apr 22, 2025 | May 30, 2025 | |
Page 25 top right |
Text: Sharpen your pencil (from page 14) |
Jørgen Lang | Jun 21, 2022 | May 30, 2025 | |
Page 40 top left |
In edition 2 there used to be examples for the classes Player and GameLauncher in the top left corner of page 40. These are missing in Ed 3. Were they left out intentionally? Note from the Author or Editor: |
Jørgen Lang | Jun 27, 2022 | May 30, 2025 | |
Page 49 sentence before the last |
"(like the difference between primited[!] and references)" Note from the Author or Editor: |
Fritz Pick | Aug 02, 2022 | May 30, 2025 | |
Page 52 last paragraph (examples) |
`boolean isLearning;` is described as "declare a boolean named isCrazy [sic] (no assignment". Note from the Author or Editor: |
Fritz Pick | Aug 02, 2022 | May 30, 2025 | |
Page 96 5th para "How to play", 2nd sentence |
redundant closing ), either after "a cell" or after "etc.". Note from the Author or Editor: |
Jørgen Lang | Jul 13, 2022 | May 30, 2025 | |
Page 100 loop prep code ("REPEAT") |
According to the prep code the "checkYourself"-method returns "miss" as soon as the userGuess doesn't match the cell in the current iteration of the loop, regardless if there is a match in the "locationCells"-array. Note from the Author or Editor: |
Fritz Pick | Jan 06, 2023 | May 30, 2025 | |
Page 109 bullet list, left column, last entry |
Last bullet point in left column appears to be out of context. Note from the Author or Editor: |
Jørgen Lang | Jul 25, 2022 | May 30, 2025 | |
Page 118 output options on the right |
The correct output i.e `13 15 i = 6` is missing. Note from the Author or Editor: |
Fritz Pick | Aug 02, 2022 | May 30, 2025 | |
Page 122 BE the JVM output |
the solution suggests the output of the program would be "13 15 x = 6" when in fact it is "13 15 i = 6". Note from the Author or Editor: |
Fritz Pick | Aug 02, 2022 | May 30, 2025 | |
Page 132 List of methods for ArrayList (box at bottom right) |
Inconsistent use of <<true>> (without quotes) vs "true" (with quotes): Note from the Author or Editor: |
Jørgen Lang | Jul 18, 2022 | May 30, 2025 | |
Page 156 bullet points, entry #9 |
Original: "You declare the type of the array using a type parameter, which is a type name in angle brackets. Example: ArrayList<Button> ……" |
Jørgen Lang | Jul 20, 2022 | May 30, 2025 | |
Page 261 bottom right, bullet point (4), 2nd sentence |
Original text: When go() Note from the Author or Editor: |
Jørgen Lang | Aug 26, 2022 | May 30, 2025 | |
Page 297 Hint on right side |
Original: "Note: if you already know printf() from c/C++, you can probably ..." |
Jørgen Lang | Aug 31, 2022 | May 30, 2025 | |
Page 298 first half. String.format explanation. |
After the format specifier there is a comma, which doesn't appear in the supposed output. |
Fritz Pick | Feb 18, 2023 | May 30, 2025 | |
Page 302 2nd half |
The paragraph states "As you’ll see when we get to date formatting[...] Just know that in a minute, you’ll see how to be more specific about which format specifiers are applied to which arguments.". Note from the Author or Editor: |
Fritz Pick | Feb 18, 2023 | May 30, 2025 | |
Page 308 Be the Compiler solution |
The solution fixes an error (i.e. omitted round brackets --> "()") that doesn't exist in the exercise-code in the third edition. Note from the Author or Editor: |
Fritz Pick | Feb 21, 2023 | May 30, 2025 | |
Page 312 top paragraph |
Text: the songDB ArrayList was declared on the last page. |
Eduardo M. Hernandez | Oct 24, 2022 | May 30, 2025 | |
Page 335 numbered list, #2 |
Original: "Using songLists.sort(artistCompare) […]" |
Jørgen Lang | Oct 13, 2022 | May 30, 2025 | |
Page 358 Comments in the code |
Original text: Pass a List<Animal> into our testAnimals method |
Eduardo M. Hernandez | Oct 25, 2022 | May 30, 2025 | |
Page 359 Code comment |
Original Text: Will this work now that we changed from an array to a List? Note from the Author or Editor: |
Eduardo M. Hernandez | Oct 25, 2022 | May 30, 2025 | |
Page 385 Code section in the middle of the page |
There are 2 places to fix: Note from the Author or Editor: |
HATEF PALIZGAR | Jul 19, 2022 | May 30, 2025 | |
Page 395 the question at the last line Function<String, Integer> f = (String s) -> s.length(); |
the question at the last line |
Keerthi | Dec 08, 2024 | May 30, 2025 | |
Page 418 solution "BE the Compiler" 4th "manuscript" annotation |
Original text: "This single-line lambda effectively returns a String Note from the Author or Editor: |
Jørgen Lang | Sep 23, 2022 | May 30, 2025 | |
Page 424 sample code and console output |
The description for the console says there would be the following unreported exception: Note from the Author or Editor: |
Fritz | Mar 29, 2023 | May 30, 2025 | |
Page 428 Paragraph before the code example |
Original text: the catch argument is declared as type Exception, and the parameter reference variable is ex. Note from the Author or Editor: |
Eduardo M. Hernandez | Oct 26, 2022 | May 30, 2025 | |
Page 440 bottom, reference to solution |
It says "Both answers on page 457" but there is only the solution of the first exercise (the class diagrams) on page 457, but not the try/catch structures from the second exercise. Note from the Author or Editor: |
Fritz | Mar 29, 2023 | May 30, 2025 | |
| Printed | Page 449 Point 3 |
Code says: |
![]() Trisha Gee |
Oct 18, 2022 | May 30, 2025 |
Page 452 last paragraph, 2nd sentence |
Original: "This gets us ready for the final version (Chapter 15)." Note from the Author or Editor: |
Jørgen Lang | Sep 28, 2022 | May 30, 2025 | |
Page 463 description of setDefaultCloseOperation call and passed argument |
The description says: "this line makes the program quit as soon as you Note from the Author or Editor: |
Fritz | Mar 30, 2023 | May 30, 2025 | |
Page 472 paintComponent method comment |
Original text: This is the Big Important Graphics method. Note from the Author or Editor: |
Eduardo M. Hernandez | Oct 29, 2022 | May 30, 2025 | |
Page 479 code example @ page bottom, last line of comment |
Original: // See page 365 for the code |
Jørgen Lang | Sep 30, 2022 | May 30, 2025 | |
Page 490 top left |
Original: page heading reads: "object lifecycle" Note from the Author or Editor: |
Jørgen Lang | Oct 06, 2022 | May 30, 2025 | |
Page 532 3rd code annotation |
Original: do this for each of the 16 ROWS (i.e., Bass, Congo, etc.) Note from the Author or Editor: |
Jørgen Lang | Oct 11, 2022 | May 30, 2025 | |
Page 534 numbered screenshots |
Because of the large nontransparent dropshadows of the macOS-screenshots some GUI-parts are being overlapped and not visible. |
Fritz | Apr 19, 2023 | May 30, 2025 | |
Page 536 below crossword grid, clue for 8 down |
Original: 8. Romulin command |
Jørgen Lang | Oct 11, 2022 | May 30, 2025 | |
Page 548 bold annotation on mid-right of page, 2nd paragraph |
Original: "You can’t serialize a Pond object if its Duck instance variable refuses to be serialized (by not implementing Serializable)." Note from the Author or Editor: |
Jørgen Lang | Oct 17, 2022 | May 30, 2025 | |
Page 556 numbered list on right side, step #5 |
Original: (5) Serialization fails!! Note from the Author or Editor: |
Jørgen Lang | Oct 19, 2022 | May 30, 2025 | |
Page 592 1st paragraph |
Original Text: FTP? 20. Note from the Author or Editor: |
Eduardo M. Hernandez | Nov 07, 2022 | May 30, 2025 | |
Page 611 (3) |
Original: The JVM switches between the new thread (user thread A) and the original main thread, until both threads complete. Note from the Author or Editor: |
Jørgen Lang | Nov 10, 2022 | May 30, 2025 | |
Page 614 Terminal image at the bottom of the page |
Error: annotations are pointing to the wrong dumpStack() call output in the terminal image. Note from the Author or Editor: |
Eduardo M. Hernandez | Nov 09, 2022 | May 30, 2025 | |
Page 629 code example, bottom right annotation, 2nd sentence |
Original: If this method hits the timeout before everything has finished, it returns "false." Note from the Author or Editor: |
Jørgen Lang | Oct 28, 2022 | May 30, 2025 | |
Page 657 Bottom terminal window |
Error: the output in the terminal that says "Sorry Monica, you can't buy this" should be "Sorry Monica, you haven't spent the money." to match what the previous code example will print in that case. |
Eduardo M. Hernandez | Nov 11, 2022 | May 30, 2025 | |
Page 674 list of new things in code kitchen, #2 "Networking" |
Original: NETWORKING: Just like the SimpleChatClient in this chapter, the BeatBox now connects to the server and gets an input and output stream. Note from the Author or Editor: |
Jørgen Lang | Nov 03, 2022 | May 30, 2025 | |
Page 676 3rd annotation |
Original: This layout manager one lets you [...]. Note from the Author or Editor: |
Jørgen Lang | Nov 03, 2022 | May 30, 2025 | |
Page 699 left column, last line + right column 2nd para, 2nd sentence |
Original: Note from the Author or Editor: |
Jørgen Lang | Nov 08, 2022 | May 30, 2025 | |
Page 711 left column, 10th entry |
Original: not equals (!equals and !) 151 Note from the Author or Editor: |
Jørgen Lang | Nov 11, 2022 | May 30, 2025 |
