Page 1 of 4 Results 1 - 10 of 35

Errata Entries Order by:  Page Number  Reported By  Reported On  Fixed In Build
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: 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: 125
Status: Fixed
Fixed in Build: 1.9
Reported On: 2019-10-06
Reported By: Fedor Lvovich Dobrotvorskii
Location: Assignment Operators
Old Text:
Simple assignment - It simply copies the value on the left to the variable on the right.
New Text:
Simple assignment - It simply copies the value on the right to the variable on the left.
Comments:
left and right are switched.
Pg: 134
Status: Fixed
Fixed in Build: 1.9
Reported On: 2019-10-06
Reported By: Fedor Lvovich Dobrotvorskii
Location: 6.1.5 Numeric Promotion and Casting
Old Text:
byte b = 1; short s = -b; System.out.println(b);
New Text:
byte b = 1; short s = -b; System.out.println(s);
Comments:
It should print s instead of b.
Pg: 57
Status: Fixed
Fixed in Build: 1.9
Reported On: 2019-10-07
Reported By: nk2164
Location: 3.3.3 second last line
Old Text:
Here, I am casting the floating point value 1.1 to an int.
New Text:
Here, I am casting the floating point value 11.1 to an int.
Comments:
1.1 should be 11.1.
Pg: 5
Status: Fixed
Fixed in Build: 1.8
Reported On: 2019-10-01
Reported By: nk2164
Location: Third last sentence in point 1
Old Text:
For example, an overriding method cannot throw a more generic exception that the one declared by the overridden method.
New Text:
For example, an overriding method cannot throw a more generic exception than the one declared by the overridden method.
Comments:
Change that to than
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: 7
Status: Fixed
Fixed in Build: 1.21
Reported On: 2019-10-02
Reported By: nk2164
Location: Last sentence in second last para
Old Text:
The ‘if’statement in the code above works because Java designers decided to permitted this type of unreachable code so that conditional compilation could occur.
New Text:
The ‘if’statement in the code above works because Java designers decided to permit this type of unreachable code so that conditional compilation could occur.
Comments:
Change permitted to permit
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: 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:

Page 1 of 4 Results 1 - 10 of 35