About Question enthuware.ocajp.i.v8.2.1440 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
Mushfiq Mammadov
Posts: 32
Joined: Fri Oct 16, 2015 4:33 am
Contact:

About Question enthuware.ocajp.i.v8.2.1440 :

Post by Mushfiq Mammadov »

Image

The explanation of first option was interesting for me and decided to investigate it. I encountered the interesting case when try to compile this code. The compile error occurs in only switch statement not a case statement.

Image

When we call getString() instead of getBool() in the switch compile error occurs in case statement but as another reason which is noted in explanation of question 65 (Test 2):
2. The case constants must be assignable to the switch variable. For example, if your switch variable is of class String, your case labels must use Strings as well.
Therefore it may be written “switch statement” or “switch or case statements” instead of “case statement” in explanation of option 1.

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

Re: About Question enthuware.ocajp.i.v8.2.1440 :

Post by admin »

Explanation has now been made more clear.
thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests