About Question enthuware.ocajp.i.v7.2.1133 :

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
prashantjain25
Posts: 9
Joined: Sat Feb 15, 2014 12:38 pm
Contact:

About Question enthuware.ocajp.i.v7.2.1133 :

Post by prashantjain25 »

"Which of the following can be thrown using a throw statement?"
this question should have "throws" not "throw" or either change options.

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

Re: About Question enthuware.ocajp.i.v7.2.1133 :

Post by admin »

You throw an exception using a throw statement. Throws is only for the declaration. The options give you the class names the objects of which you can/cannot throw.

prashantjain25
Posts: 9
Joined: Sat Feb 15, 2014 12:38 pm
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1133 :

Post by prashantjain25 »

Question seems contradictory because throws accept only class Names and throw accept only object not class Name but question is giving Class names for throw statement which is applicable for any class Object not Class

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

Re: About Question enthuware.ocajp.i.v7.2.1133 :

Post by admin »

OK, the statement has been updated to say, "Objects of which of the following classes ...".

thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest