Page 4 of 7 Results 31 - 40 of 64

Errata Entries Order by:  Page Number  Reported By  Reported On  Fixed In Build
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: 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.
Pg: 120
Status: Fixed
Fixed in Build: 14
Reported On: 2018-12-04
Reported By: Username987654
Location: 5.1.1 - overview-of-operators -- Miscellaneous Operators
Old Text:
It returns true if the object pointed to by the reference variable on the left is of the type (or a subtype) of the type given on the left and false otherwise.
New Text:
It returns true if the object pointed to by the reference variable on the left is of the type (or a subtype) of the type given on the right and false otherwise.
Comments:
In the detail text of instanceof , section left should be right.
Pg: 110
Status: Fixed
Fixed in Build: 06
Reported On: 2018-10-07
Reported By: Cristian Palau
Location: 5.1.1 - overview-of-operators-available-in-java
Old Text:
System.out.println(false != flag); //comparing a boolean with a Boolean, prints true because flag is false
New Text:
System.out.println(false != flag); //comparing a boolean with a Boolean, prints false because flag is false
Comments:

Pg: 124
Status: Fixed
Fixed in Build: 15
Reported On: 2019-01-25
Reported By: OCAJO1
Location: 5.1.3 - last line
Old Text:
c = \textbf{b *} a * (a++ - --b) * a * b
New Text:
c = b * a * (a++ - --b) * a * b
Comments:

Pg: 126
Status: Fixed
Fixed in Build: 22
Reported On: 2019-10-06
Reported By: Fedor Lvovich Dobrotvorskii
Location: 5.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: 131
Status: Fixed
Fixed in Build: 19
Reported On: 2019-06-20
Reported By: Username987654
Location: 5.1.6
Old Text:
will be grouped as a = ( b = (c = 5) ;
New Text:
will be grouped as a = ( b = (c = 5)) ;
Comments:
Closing bracket is missing.
Pg: 141
Status: Fixed
Fixed in Build: 24
Reported On: 2019-11-24
Reported By: Username987654
Location: 6.1.2 Usage of if and if-else in the exam
Old Text:
boolean flag = false; if( flag ) ; else System.out.println("false"); }
New Text:
boolean flag = false; if( flag ) ; else System.out.println("false");
Comments:
Closing curly brace at the end should be removed.

Page 4 of 7 Results 31 - 40 of 64