[HD Pg 146, Sec. 6.2.0 - create-ternary-constructs]

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

Moderator: admin

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

[HD Pg 146, Sec. 6.2.0 - create-ternary-constructs]

Post by enthunoob »

I think it would be worth it to mention somewhere in this chapter that the third part of the ternary operate can't be omitted. The else of an if(-else) statement can be omitted, but this doesn't work with ternaries.

I tried oca last week and remember asking myself if it was possible to leave out the third part, as one of the options had a nested ternary with one third-part missing.

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

Re: [HD Pg 146, Sec. 6.2.0 - create-ternary-constructs]

Post by admin »

Sure. Thanks for your feedback!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 74 guests