Page 4 of 7 Results 31 - 40 of 64

Errata Entries Order by:  Page Number  Reported By  Reported On  Fixed In Build
Pg: 167
Status: Fixed
Fixed in Build: 30
Reported On: 2020-05-12
Reported By: saregg
Location: 7.5.2 last para
Old Text:
java.util.Iterable
New Text:
java.lang.Iterable
Comments:

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: 176
Status: Fixed
Fixed in Build: 30
Reported On: 2020-05-12
Reported By: saregg
Location: 7.8 first para
Old Text:
java.util.Iterable
New Text:
java.lang.Iterable
Comments:

Pg: 178
Status: Fixed
Fixed in Build: 14
Reported On: 2018-12-23
Reported By: Username987654
Location: 8.1.1
Old Text:
It cannot be a reserved work...
New Text:
It cannot be a reserved word...
Comments:

Pg: 182
Status: Fixed
Fixed in Build: 31
Reported On: 2020-06-04
Reported By: addy12345
Location: 8.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: 190
Status: Fixed
Fixed in Build: 16
Reported On: 2019-02-09
Reported By: OCAJ01
Location: 8..3.1
Old Text:
In the case of a method or a field, this keyword must appear immediately before the return type of the method or the type of the field respectively.
New Text:
In the case of a method or a field, this keyword must appear before the return type of the method or the type of the field respectively.
Comments:
The word "immediately" should be removed.
Pg: 192
Status: Fixed
Fixed in Build: 16
Reported On: 2019-02-16
Reported By: Username987654
Location: 8.3.3 - Accessing static members from the same class
Old Text:
new InstanceCounter(); new InstanceCounter(); //accessing static method through an implicit reference to an instance 8.3 Apply the static keyword to methods and fields 193 new InstanceCounter().printCount(); //accessing count through the class name System.out.println(InstanceCounter.count);
New Text:
new InstanceCounter().printCount(); //accessing static method through an implicit reference to an instance System.out.println(InstanceCounter.count); //accessing count through the class name
Comments:
The two new InstanceCounter() statements are not needed and the comments should be moved to the corresponding statements.
Pg: 192
Status: Fixed
Fixed in Build: 19
Reported On: 2019-05-10
Reported By: natasci
Location: 8.3.2 last para
Old Text:
f.baz()
New Text:
f.boz()
Comments:
Change the baz to boz in the code and the text below because the method baz is private in Foo while baz is not.
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:

Page 4 of 7 Results 31 - 40 of 64