"Which of the following can be thrown using a throw statement?"
this question should have "throws" not "throw" or either change options.
About Question enthuware.ocajp.i.v7.2.1133 :
Moderators: Site Manager, fjwalraven
-
- Posts: 9
- Joined: Sat Feb 15, 2014 12:38 pm
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1133 :
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.
-
- Posts: 9
- Joined: Sat Feb 15, 2014 12:38 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1133 :
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
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1133 :
OK, the statement has been updated to say, "Objects of which of the following classes ...".
thank you for your feedback!
thank you for your feedback!
Who is online
Users browsing this forum: No registered users and 12 guests