Page 2 of 7 Results 11 - 20 of 64

Errata Entries Order by:  Page Number  Reported By  Reported On  Fixed In Build
Pg: 71
Status: Fixed
Fixed in Build: 09
Reported On: 2018-11-26
Reported By: Username987654
Location: 3.3.3 - Assigning float to int or double to long and vice-versa
Old Text:
Two errors - 1. Part of the sentence, "Java allows such assignments without a cast because it is possible to get back the exact same int or long value from a float or a double if you round them off." must be removed. 2. The statement, "i = f1; //will not compile" in the code should be removed.
New Text:
Java allows such assignments without a cast nonetheless.
Comments:

Pg: 71
Status: Fixed
Fixed in Build: 18
Reported On: 2019-04-08
Reported By: natasci
Location: 3.3 Assigning float to int or double to long and vice-versa
Old Text:
long g = 9223372036854775807; //Long.MAX_VALUE;
New Text:
long g = 9223372036854775807L; //Long.MAX_VALUE;
Comments:
L is missing.
Pg: 82
Status: Fixed
Fixed in Build: 14
Reported On: 2019-01-09
Reported By: OCAJO1
Location: 3.5.3 - Garbage Collection for the exam
Old Text:
Diagrams are off by 1 step. Diagrams shown at step 2, 3, 4 should be at step 1, 2, and 3.
New Text:
Diagrams are aligned with the steps
Comments:
Diagrams and steps are correct. Only their alignment is wrong.
Pg: 86
Status: Fixed
Fixed in Build: 32
Reported On: 2020-06-30
Reported By: kowenli
Location: S.5.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 on second line
Pg: 95
Status: Fixed
Fixed in Build: 19
Reported On: 2019-06-19
Reported By: username987654
Location: 4.1.2
Old Text:
boolean[] ba = new boolean[3]; //an array of booleans of size 2
New Text:
boolean[] ba = new boolean[3]; //an array of booleans of size 3
Comments:

Pg: 102
Status: Fixed
Fixed in Build: 14
Reported On: 2018-12-02
Reported By: Username987654
Location: 4.3.1 - multidimensional-arrays
Old Text:
In para starting with "In this figure...", ia should be iaa.
New Text:

Comments:

Pg: 103
Status: Fixed
Fixed in Build: 10
Reported On: 2018-12-02
Reported By: Username987654
Location: 4.3.1 - multidimensional-arrays
Old Text:
Example 1 has [2][3], while here, it is [2][]...[2] implies that you want to store two references. In other of words, the length of your array (which is of type array of ints) is 2.
New Text:
Example 1 has [2][3], while here, it is [3][]...[3] implies that you want to store three references. In other of words, the length of your array (which is of type array of ints) is 3.
Comments:

Pg: 103
Status: Fixed
Fixed in Build: 16
Reported On: 2019-02-07
Reported By: Username987654
Location: 4.3.1
Old Text:
iaa[0] = new int[2]; //ia[0] points to an array of ints of length 2 iaa[1] = new int[3]; //ia[1] points to an array of ints of length 3
New Text:
iaa[0] = new int[2]; //iaa[0] points to an array of ints of length 2 iaa[1] = new int[3]; //iaa[1] points to an array of ints of length 3
Comments:
ia should be iaa (in comments)
Pg: 104
Status: Fixed
Fixed in Build: 10
Reported On: 2018-12-02
Reported By: -
Location: 4.3.1 - multidimensional-arrays
Old Text:
You cannot, however, leave out the size of a higher dimension if you want to specify the size of a lower dimension. For example, you cannot do new int[][2]; This is not possible because the number of int[][] references depends on how many int[] objects do you have. If you have three int[] objects, that means you will have 3x2 = 6 int[][] references. The JVM cannot figure this out without knowing the length of all the higher dimensions.
New Text:
You cannot, however, leave out the size of a higher dimension if you want to specify the size of a lower dimension. For example, you cannot do new int[][2]; The reason is simple - new int[][2] tries to create an array of int[2] objects. But it it does not tell the JVM how many int[2] objects you want to store. Without this information, the JVM has no idea how much space it needs to allocate for this array. On the other hand, new int[2][] is fine because now, you are telling the JVM that you want to create an array of length 2. In this case, the JVM is clear that it needs to allocate space to store 2 references. Remember that the size of a reference doesn't depend on the length of the array to which it points. So, the JVM doesn't care about the length of the arrays to which these two references will refer. It simply allocates space to store 2 references.
Comments:

Pg: 106
Status: Fixed
Fixed in Build: 29
Reported On: 2020-04-15
Reported By: ruidanielribeiro
Location: 4.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.

Page 2 of 7 Results 11 - 20 of 64