Page 5 of 7 Results 41 - 50 of 64

Errata Entries Order by:  Page Number  Reported By  Reported On  Fixed In Build
Pg: 362
Status: Fixed
Fixed in Build: 19
Reported On: 2019-05-21
Reported By: natasci
Location: 12.4.2 example 4
Old Text:
list1.add(list2);
New Text:
list1.addAll(list2);
Comments:

Pg: 86
Status: Fixed
Fixed in Build: 32
Reported On: 2020-06-30
Reported By: kowenli
Location: S.5.3 step 7
Old Text:
Step 7: At line 9, a new object is created and assigned to baz. Thus, bar stops pointing to obj 1 and starts pointing to obj 3 after the execution of this line.
New Text:
Step 7: At line 9, a new object is created and assigned to baz. Thus, baz stops pointing to obj 1 and starts pointing to obj 3 after the execution of this line.
Comments:
Change bar to baz on second line
Pg: 59
Status: Fixed
Fixed in Build: 25
Reported On: 2020-02-23
Reported By: karthiknk81
Location: 3.1 (Table of Data types)
Old Text:
'\uo0061'
New Text:
'\u0061'
Comments:

Pg: 42
Status: Fixed
Fixed in Build: 25
Reported On: 2020-02-07
Reported By: javiut
Location: 2.2.5 Quiz
Old Text:
Correct answer is B.
New Text:
Correct answer is B and E. Option E is correct because a Java source file contains three parts package declaration, import statements, and type declarations. All of them are optional.
Comments:

Pg: 36
Status: Fixed
Fixed in Build: 25
Reported On: 2020-02-07
Reported By: javiut
Location: 2.2.2 Stucture of a Java class
Old Text:
Part 3: one or more reference type (i.e. class, interface, or enum) definitions. ...
New Text:
Part 3: zero or more reference type (i.e. class, interface, or enum) definitions. --- On Page 37, the line, "A Java source file must define at least one Java reference type definition in it." must be deleted.
Comments:
All of the three parts are optional.
Pg: 174
Status: Fixed
Fixed in Build: 26
Reported On: 2020-02-15
Reported By: javiut
Location: 7.7.2 breaking out of and continuing with nested loops - what is a loop
Old Text:
BAD2 : x++; //can’t apply a label to expressions
New Text:
This line should be removed.
Comments:
It is possible to label an expression statement.
Pg: 195
Status: Fixed
Fixed in Build: 26
Reported On: 2020-02-22
Reported By: javiut
Location: 8.3.4 Importing static field
Old Text:
Java 7
New Text:
Java 5
Comments:
import static statement was added in Java 5.
Pg: 195
Status: Fixed
Fixed in Build: 30
Reported On: 2020-04-06
Reported By: javiut
Location: 8.3.3 (last code snippet)
Old Text:
System.out.println(InstanceCounter.printCount()+" "+InstanceCounter.count);
New Text:
InstanceCounter.printCount(); //accessing static method using the class name System.out.println(InstanceCounter.count); //accessing static field using the class name
Comments:

Pg: 66
Status: Fixed
Fixed in Build: 07
Reported On: 2018-10-20
Reported By: Flex567
Location: 3.3.3 - literals
Old Text:
You cannot start or end a literal with an underscore and cannot use multiple underscores consecutively.
New Text:
You cannot start or end a literal with an underscore. You can also use multiple underscores consecutively. You don't need to worry about the rules governing the usage of underscores in hexadecimal, binary, and octal number formats.
Comments:

Pg: 369
Status: Fixed
Fixed in Build: 14
Reported On: 2018-12-11
Reported By: Flex567
Location: 12.5.2 - Parts of a Lambda expression
Old Text:
(a, b, c) -> a + b + c; //valid ... a ->a + 2; //valid a - >return a + 2; //invalid, must not have return keyword
New Text:
(a, b, c) -> a + b + c //valid ... a ->a + 2 //valid a - >return a + 2 //invalid, must not have return keyword
Comments:
Sample lambda expressions should not have semi-colons at the end.

Page 5 of 7 Results 41 - 50 of 64