Michel Parisien wrote:
Page 56, first paragraph after rule 4
"For the third rule, note that unary operators are excluded from this rule."
Not true. If they were, then System.out.println(-Byte.MIN_VALUE); would output -128, not 128 (which falls outside of the byte's range of -128..127).
Michel Parisien wrote:
Page 57, table 2.2, "+" and "-"
I would explain it differently, particularly the "+".
The "+" unary operator is actually almost a no-op. If the value is positive, it stays positive. If it is negative, it stays negative.
The "-" operator is a negator. It changes the sign. (Some exceptions exist, such as seen with System.out.println(-Integer.MIN_VALUE); and System.out.println(-Long.MIN_VALUE);)
These unary operators promote the type as would happen in a binary operation (as I mentioned in my previous errata point, unary operations are not exempt from this).
Michel Parisien wrote:
Page 57, table 2.2, "!"
I would change the word "Boolean" in the "!" explanation to monospace formatting "boolean".
Michel Parisien wrote:
Page 61, sidebar
"so the system "wraps around" to the next lowest value and counts up from there."
For me, "next lowest value" would mean one higher than the lowest value.
Michel Parisien wrote:
Page 68, paragraph half way down the page
"The else operator takes a statement or block of statement"
should be "block of statements".
Michel Parisien wrote:
Page 75, middle of the page;
Page 75, source code at the bottom of the page;
Page 77, source code near the bottom of the page
Slight formatting issue with the line spacing of the first line.
Michel Parisien wrote:
Page 76, last paragraph of the switch statement
"In the fourth case statement, despite lastName being final, it is not constant as it is passed to the function; therefore, this line does not compile as well."
I feel this phrasing makes it sound like it being a parameter variable gives it a special behaviour. My suggested phrasing would be:
"In the fourth case statement, despite lastName being final, it cannot be evaluated to a constant value at compile time; therefore, this line does not compile as well."
Michel Parisien wrote:
Page 79, sidebar
"Any while loop can be converted to a do-while loop, and vice versa."
Not sure if I understand, or if the "vice versa" is well illustrated here.
Michel Parisien wrote:
Page 82, section "3. Redeclaring a Variable in the Initializable Block"
The first code snippet of this section reads as follows:
The second code snippet is this:
I would propose that the second line, "long y = 10;", should instead be "long y;", so that the intent of the first snippet is maintained (ie. it never intended to set y to 10).
Michel Parisien wrote:
Page 83, last paragraph
"The for-each loop declaration is composed of an initialization section and an object to be iterated over."
and further into the paragraph
"The left-hand side of the for-each loop must include a declaration for an instance of a variable"
So I would be inclined to agree more with the second part and say in the first part:
"The for-each loop declaration is composed of a variable declaration and an object to be iterated over."
Michel Parisien wrote:
Page 93, last paragraph, 2nd line
"flow control" should be "control flow".
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Jeanne Boyarsky wrote:
Michel Parisien wrote:
Page 75, middle of the page;
Page 75, source code at the bottom of the page;
Page 77, source code near the bottom of the page
Slight formatting issue with the line spacing of the first line.
Formatting isn't wrong. I don't see anything that's actually wrong there.
Roel De Nijs wrote:I agree with the OP on this one (although it is a very tiny - almost minuscule - issue and a definite 100% nitpick )
Michel Parisien wrote:if I was inviting people to review something I did, I would find it tragic if they didn't tell me something because they were worried it would be perceived as a nitpick.
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Jeanne Boyarsky wrote:Michel: I'd certainly rather hear about more stuff than less. Although I'd rather hear about formatting over email rather than in a long list titled errata .
Roel: The reason I don't consider the formatting significant is because it doesn't make the code or result incorrect. It's also not something I can control as an author. There's also a distinction between a nitpick that is a minor thing that is wrong and a nitpick that is purely cosmetic. Since this one was just cosmetic, I was trying to reply that it isn't an errata.
Michel Parisien wrote:I'll try to get better at understanding what an errata is as I progress. As far as I understand so far, they involve spelling and grammatical mistakes, and do not involve layout or rephrasings. Is that a fair assessment?
Jeanne Boyarsky wrote:There's also a distinction between a nitpick that is a minor thing that is wrong and a nitpick that is purely cosmetic. Since this one was just cosmetic, I was trying to reply that it isn't an errata.
Michel Parisien wrote:I'll try to get better at understanding what an errata is as I progress. As far as I understand so far, they involve spelling and grammatical mistakes, and do not involve layout or rephrasings. Is that a fair assessment?
Roel De Nijs wrote:I knew this one was just a purely cosmetic nitpick and therefore isn't an errata item. But based on your response to the original errata item report ("I don't see anything that's actually wrong there."), I thought you didn't notice the slightly greater line space in the code snippets and that's what I tried to explain. But that was clearly a wrong assumption on my side.
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|