Page 1 of 4 Results 1 - 10 of 34

Errata Entries Order by:  Page Number  Reported By  Reported On  Fixed In Build
Pg: 98
Status: Fixed
Fixed in Build: 2.1
Reported On: 2020-06-30
Reported By: kowenli
Location: 4.6.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 in the second line.
Pg: 364
Status: Fixed
Fixed in Build: 2.1
Reported On: 2020-06-29
Reported By: dimitrilc
Location: 14.1.4 BiFunction
Old Text:
A BiFunction is ...
New Text:
A BiFunction is ...
Comments:
The description is correct. Only the 'U' is missing in type parameters.
Pg: 206
Status:
Fixed in Build: 1.22
Reported On: 2020-06-04
Reported By: addy12345
Location: 10.1.2 - Returning values of different types from a method - Point 2 Autoboxing/Unboxing
Old Text:
Java allows a return value to be a reference to a wrapper class if the return type is of a primitive type of the same or smaller type. ... The reverse is also allowed:
New Text:
Java allows a return value to be a reference to a wrapper class if the return type is of a primitive type of the same or smaller type. ... The reverse is also allowed but only when the method's return type is a wrapper of the same type as the type of the primitive value being returned -
Comments:

Pg: 182
Status: Fixed
Fixed in Build: 1.21
Reported On: 2020-05-12
Reported By: saregg
Location: 8.8 First para
Old Text:
java.util.Iterable
New Text:
java.lang.Iterable
Comments:

Pg: 360
Status: Fixed
Fixed in Build: 1.21
Reported On: 2020-05-12
Reported By: saregg
Location: 14.1.5 first para under The forEach method
Old Text:
java.util.Iterable
New Text:
java.lang.Iterable
Comments:

Pg: 198
Status: Fixed
Fixed in Build: 1.21
Reported On: 2020-04-15
Reported By: ruidanielribeiro
Location: 9.3.1 step 2
Old Text:
Next, you can set iaaa[0][0] to point to an array of 4 ints using iaaa[0][0] = new int[]{ 1, 2, 3, 4}; or iaaa[0][0] = { 1, 2, 3, 4};
New Text:
Next, you can set iaaa[0][0] to point to an array of 4 ints using iaaa[0][0] = new int[]{ 1, 2, 3, 4};
Comments:
The "or iaaa[0][0] = { 1, 2, 3, 4}; " should be removed because it works only at the time of declaration.
Pg: 402
Status: Fixed
Fixed in Build: 1.21
Reported On: 2020-04-14
Reported By: wombat747
Location: 16.1.1 Under Compiling individual module source files
Old Text:
c:\ocp11\moduletest>javac -d out\simpleinterest src\simpleinterest\module- info.java src\simpleinteres\simpleinterest SimpleInterestCalculator.java
New Text:
c:\ocp11\moduletest>javac -d out\simpleinterest src\simpleinterest\module- info.java src\simpleinteres\simpleinterest\SimpleInterestCalculator.java
Comments:
There should be \ insteadof a space between src\simpleinteres\simpleinterest and SimpleInterestCalculator.java
Pg: 237
Status: Fixed
Fixed in Build: 1.21
Reported On: 2020-04-06
Reported By: javiut
Location: 10.5.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: 358
Status: Fixed
Fixed in Build: 1.21
Reported On: 2020-03-31
Reported By: ardurn
Location: 14.1.3 Last line of point 4
Old Text:
You could create a Predicate out of the equals method like this - Predicate equals = Predicate.isEquals(c1);.
New Text:
You could create a Predicate out of the equals method like this - Predicate equals = Predicate.isEqual(c1);.
Comments:
It should be isEqual instead of isEquals.
Pg: 173
Status: Fixed
Fixed in Build: 1.20
Reported On: 2020-03-06
Reported By: ardurn
Location: 8.5.2 Syntax of the enhanced for loop
Old Text:
java.util.Iterable
New Text:
java.lang.Iterable
Comments:

Page 1 of 4 Results 1 - 10 of 34