Page 1 of 1
About Question enthuware.oce-ejbd.v6.2.486 :
Posted: Wed Jul 13, 2011 2:05 pm
by jszczepankiewicz
In order to make the throw to happen the argument of the method should be 0. There is nothing about the argument passed to the method so the answer can not be determined. The question should be extended and the value of the argument should be listed to make the question fully correct with the answers.
Re: About Question enthuware.oce-ejbd.v6.2.486 :
Posted: Wed Jul 13, 2011 5:15 pm
by admin
Hello,
As the explanation explain, the answer to the question does not depend on the value of the argument. i.e. even when this exception is thrown (the case when argument is 0), the transaction under which the bean method was invoked, will not be set for rollback.
HTH,
Paul.
Re: About Question enthuware.oce-ejbd.v6.2.486 :
Posted: Sat Oct 06, 2012 3:40 pm
by Guest
admin wrote:the answer to the question does not depend on the value of the argument.
You are quite correct in this, but the question's purpose is (probably) to test the taker's knowledge, not his skill in puzzle solving. As the question is now, it can be answered by finding the option which is valid for x != 0.
Though, of course, since my goal is to learn, I wouldn't use such methods anyway.

Re: About Question enthuware.oce-ejbd.v6.2.486 :
Posted: Sat Oct 06, 2012 4:17 pm
by admin
Guest wrote:admin wrote:the answer to the question does not depend on the value of the argument.
You are quite correct in this, but the question's purpose is (probably) to test the taker's knowledge, not his skill in puzzle solving. As the question is now, it can be answered by finding the option which is valid for x != 0.
Though, of course, since my goal is to learn, I wouldn't use such methods anyway.

I see your point. This will be changed asap.
thank you for your feedback!
Paul.