Page 1 of 4 Results 1 - 10 of 35

Errata Entries Order by:  Page Number  Reported By  Reported On  Fixed In Build
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: 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: 237
Status: Fixed
Fixed in Build: 1.19
Reported On: 2020-02-22
Reported By: javiut
Location: 10.5.4 Importing static fields
Old Text:
Java 7
New Text:
Java 5
Comments:
import static statement was added in Java 5.
Pg: 345
Status: Fixed
Fixed in Build: 1.10
Reported On: 2019-10-16
Reported By: DazedTurtle
Location: 13.3.8 Quiz Option E
Old Text:
E. A call to process(map); can be inserted in the process method of SubClass.
New Text:
E. A call to super.process(map); can be inserted in the process method of SubClass.
Comments:
process(map) should be changed to super.process(map).
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: 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: 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: 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: 394
Status: Fixed
Fixed in Build: 1.11
Reported On: 2019-11-22
Reported By: -
Location: 16.1.1 What are modules
Old Text:
what-are-modules-jarXmoduleXapplication.png
New Text:

Comments:
Image is missing in build 1.10 only
Pg: 397
Status: Fixed
Fixed in Build: 1.11
Reported On: 2019-11-22
Reported By: -
Location: 16.1.3
Old Text:
directory-structure-of-a-module-moduletestXsrcXdirXstruct.png
New Text:

Comments:
Image is missing in build 1.10 only

Page 1 of 4 Results 1 - 10 of 35