[HD Pg 168, Sec. 5.1.5 - curious-case-of-unary-increment-decrement-and-compound-assignment-operators]

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
Username987654
Posts: 95
Joined: Sat Dec 26, 2015 6:37 pm
Contact:

[HD Pg 168, Sec. 5.1.5 - curious-case-of-unary-increment-decrement-and-compound-assignment-operators]

Post by Username987654 »

To put it simply, the rules of numeric promotion do not apply to ++, - and the compound assignment operators
should be
To put it simply, the rules of numeric promotion do not apply to ++, -- and the compound assignment operators
? ( - should be -- ?)

admin
Site Admin
Posts: 10046
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: [HD Pg 168, Sec. 5.1.5 - curious-case-of-unary-increment-decrement-and-compound-assignment-operators]

Post by admin »

I do see it as -- (and not just -) in pdf as well as in kindle. I remember you reported a similar error earlier also. Could you please tell me which version (i.e. kindle, pdf, or paper) are you seeing this error in, so that I can find out what is causing it.

thank you,
Paul.
If you like our products and services, please help us by posting your review here.

Username987654
Posts: 95
Joined: Sat Dec 26, 2015 6:37 pm
Contact:

Re: [HD Pg 168, Sec. 5.1.5 - curious-case-of-unary-increment-decrement-and-compound-assignment-operators]

Post by Username987654 »

PDF: (Review Copy) Wednesday 25th July, 2018 Build 1.0
Specifically, I'm using Adobe Acrobat X Pro(attached) and FoxIt Reader Version: 9.2.0.9297
CuriousCaseOfUnaryDecrement.PNG
CuriousCaseOfUnaryDecrement.PNG (54.98 KiB) Viewed 2642 times
Thanks Paul.

admin
Site Admin
Posts: 10046
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: [HD Pg 168, Sec. 5.1.5 - curious-case-of-unary-increment-decrement-and-compound-assignment-operators]

Post by admin »

OK, got it. In the first few builds, two dashes were getting coalesced into a single dash automatically. It was an issue with the build process, which was fixed quite a while back.

Please download the most recent version from https://enthuware.com/index.php/compone ... Itemid=691

HTH,
Paul.
If you like our products and services, please help us by posting your review here.

Username987654
Posts: 95
Joined: Sat Dec 26, 2015 6:37 pm
Contact:

Re: [HD Pg 168, Sec. 5.1.5 - curious-case-of-unary-increment-decrement-and-compound-assignment-operators]

Post by Username987654 »

Thanks Paul!

FYI: The download failed for me (7 times citing "Failed - Network error" in my Windows 10 download status bar) using Google Chrome Version 72.0.3626.96 (Official Build) (64-bit). It downloaded for me, the very first time, using FIrefox Quantum 65.0 (64-bit).

admin
Site Admin
Posts: 10046
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: [HD Pg 168, Sec. 5.1.5 - curious-case-of-unary-increment-decrement-and-compound-assignment-operators]

Post by admin »

Not sure why that is but I am using chrome as well and it worked fine.
test1.png
test1.png (58.33 KiB) Viewed 2633 times
If you like our products and services, please help us by posting your review here.

Username987654
Posts: 95
Joined: Sat Dec 26, 2015 6:37 pm
Contact:

Re: [HD Pg 168, Sec. 5.1.5 - curious-case-of-unary-increment-decrement-and-compound-assignment-operators]

Post by Username987654 »

I was able to get to the place that you are illustrating just fine. The download failed for me 7 times citing "Failed - Network error" beside the failed download, in my Windows 10 download status bar) using Google Chrome Version 72.0.3626.96 (Official Build) (64-bit).

(I was able to download using Firefox. I just wanted you to know so that you could get ahead of this for the next person.)
Attachments
Please_See_Download_Details.png
Please_See_Download_Details.png (61.92 KiB) Viewed 2632 times

admin
Site Admin
Posts: 10046
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: [HD Pg 168, Sec. 5.1.5 - curious-case-of-unary-increment-decrement-and-compound-assignment-operators]

Post by admin »

ok, sure. I will have this investigated.
thanks for letting us know.
Paul.
If you like our products and services, please help us by posting your review here.


enthunoob
Posts: 60
Joined: Thu Apr 15, 2021 12:21 pm
Contact:

Re: [HD Pg 168, Sec. 5.1.5 - curious-case-of-unary-increment-decrement-and-compound-assignment-operators]

Post by enthunoob »

"I guess, convenience superseded that argument in this case :)"

The explanations are great, but really... All these exceptions make the design of Java so inconsistent, and therefor annoying to learn. It's the same with the ability of the compiler to see if a local variable is assigned a value within an if statement, or even an nested if or switch-default block.. Seems smart design, but is actually just inconsistent imo.

Post Reply

Who is online

Users browsing this forum: No registered users and 93 guests