Page 2 of 7 Results 11 - 20 of 64

Errata Entries Order by:  Page Number  Reported By  Reported On  Fixed In Build
Pg: 351
Status: Fixed
Fixed in Build: 18
Reported On: 2019-04-24
Reported By: OCAJ01
Location: 12.3.6 point 1
Old Text:
You should change the second line to ld = ld.plusMonths(2).plusDays(10); if you want to see 2018-02-10 in the output.
New Text:
You should change the second line to ld = ld.plusMonths(2).plusDays(10); if you want to see 2018-03-11 in the output.
Comments:

Pg: 353
Status: Fixed
Fixed in Build: 18
Reported On: 2019-04-26
Reported By: OCAJ01
Location: 12.4.1
Old Text:
//insert an object at index 2 al.add(2, "david"); //remove object at index 0 al.remove(0); //process objects in the list for(Object o : al){
New Text:
al.add(2, "david");//insert an object at index 2 al.remove(0);//remove object at index 0 for(Object o : al){ //process objects in the list
Comments:
Comments are off by a line
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: 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.
Pg: 371
Status: Fixed
Fixed in Build: 16
Reported On: 2019-02-24
Reported By: Flex567
Location: 12.5.3
Old Text:
1. default Predicateor(Predicateother) :
New Text:
1. default Predicateand(Predicateother) :
Comments:

Pg: 375
Status: Fixed
Fixed in Build: 29
Reported On: 2020-03-31
Reported By: ardurn
Location: 12.5.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 isEquals instead of isEquals.
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: 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: 44
Status: Fixed
Fixed in Build: 20
Reported On: 2019-07-29
Reported By: Username987654
Location: 2.4.1
Old Text:
Thus, you cannot use the simple name Values in your code if you haven’t imported taxes.* or taxes.Test already using the regular import statement.
New Text:
Thus, you cannot use the simple name Values in your code if you haven’t imported taxes.* or taxes.Values already using the regular import statement.
Comments:
taxes.Test should be changed to taxes.Values.
Pg: 51
Status: Fixed
Fixed in Build: 20
Reported On: 2019-07-30
Reported By: Username987654
Location: 2.7
Old Text:
If a subclass overrides a method of a base class and if the object referred to by a variable is of type subclass, then the subclass’s version of the method is used even if the declared type of the variable is of base class. This is also called .
New Text:
If a subclass overrides a method of a base class and if the object referred to by a variable is of type subclass, then the subclass’s version of the method is used even if the declared type of the variable is of base class. This is also called dynamic binding.
Comments:
The words "dynamic binding" are missing at the end.

Page 2 of 7 Results 11 - 20 of 64