Page 1 of 1

About Question enthuware.oce-ejbd.v6.2.521 :

Posted: Sun Apr 24, 2011 9:58 pm
by ETS User
Will it not print:

"Exception in looking up..."

then

"default"

??

Re: About Question enthuware.oce-ejbd.v6.2.521 :

Posted: Mon Apr 25, 2011 6:03 am
by admin
Yes, as the explanation says it will catch the exception. The option is saying, "default will be printed", which is correct. An option does not necessarily have to specify all the output.

Re: About Question enthuware.oce-ejbd.v6.2.521 :

Posted: Mon Apr 25, 2011 2:03 pm
by Guest
and the real exam is as tricky as that?

Re: About Question enthuware.oce-ejbd.v6.2.521 :

Posted: Wed Aug 10, 2011 9:43 am
by PedroKowalski
Indeed, quite tricky ;-)

Re: About Question enthuware.oce-ejbd.v6.2.521 :

Posted: Thu Sep 08, 2011 9:43 am
by suhas_sm
I am still not getting it. It will always go to catch block after that statement. Then how will "default" be printed ?

Re: About Question enthuware.oce-ejbd.v6.2.521 :

Posted: Thu Sep 08, 2011 5:25 pm
by admin
suhas_sm wrote:I am still not getting it. It will always go to catch block after that statement. Then how will "default" be printed ?
What will it execute after finishing the catch block?

Re: About Question enthuware.oce-ejbd.v6.2.521 :

Posted: Fri Mar 09, 2012 9:38 am
by Alan
The answer should be changed because it is not straightforward.

Correct:
Catch block will be reached so everything within catch block will be printed. Moreover 'default' will be printed as well.


Current answer suggests that catch block is not reached.

Re: About Question enthuware.oce-ejbd.v6.2.521 :

Posted: Sat Mar 10, 2012 7:53 am
by admin
As discussed above, the option says "default will be printed", which is correct. It does not say anything about the catch block. I agree it is a little ambiguous and is not straightforward, but that is ok for some questions because the actual exam does have some questions like that.

So if we change the option, the user will lose an opportunity to know about such gotchas. If we don't change the option, some users will be irritated (and rightly so) with this kind of an option.

Re: About Question enthuware.oce-ejbd.v6.2.521 :

Posted: Tue Aug 13, 2013 5:23 am
by kezman9
That's quite tricky!!:) And it's good that you haven't decided to change the answer.

Re: About Question enthuware.oce-ejbd.v6.2.521 :

Posted: Thu Aug 29, 2013 8:42 am
by sanju.ait@gmail.com
Checking alertness of candidate in this question :)

Re: About Question enthuware.oce-ejbd.v6.2.521 :

Posted: Tue Jan 12, 2016 4:40 pm
by aazizi.tarik
I liked the question, quite tricky. However, if we suppose we have env entries configured in the deployment descriptor, what will be the value of loc ("defalut" or the DD value)? Could you please answer regarding both cases: before calling lookup and after calling lookup.
Because I think after callink lookup the value ill be "Default", but I don't know before calling lookup what will be the value of loc (as I said, assuming DD is configured)

Re: About Question enthuware.oce-ejbd.v6.2.521 :

Posted: Thu May 11, 2017 3:29 am
by annamaria
Referring to first post in this topic, I think it should be right tho check the last answer, "none of these", because not only "default" is printed...
Otherwise, please remove "none of these" answer from the answer's list.

In my opinion right now, It's no trick, it's wrong !