Page 1 of 1
About Question enthuware.ocajp.i.v7.2.1133 :
Posted: Mon Feb 24, 2014 5:51 am
by prashantjain25
"Which of the following can be thrown using a throw statement?"
this question should have "throws" not "throw" or either change options.
Re: About Question enthuware.ocajp.i.v7.2.1133 :
Posted: Mon Feb 24, 2014 5:56 am
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.
Re: About Question enthuware.ocajp.i.v7.2.1133 :
Posted: Mon Feb 24, 2014 6:30 am
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
Re: About Question enthuware.ocajp.i.v7.2.1133 :
Posted: Mon Feb 24, 2014 10:07 am
by admin
OK, the statement has been updated to say, "Objects of which of the following classes ...".
thank you for your feedback!