About Question enthuware.oce-ejbd.v6.2.521 :
Moderator: admin
About Question enthuware.oce-ejbd.v6.2.521 :
Will it not print:
"Exception in looking up..."
then
"default"
??
"Exception in looking up..."
then
"default"
??
-
- Site Admin
- Posts: 10045
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.521 :
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.
If you like our products and services, please help us by posting your review here.
-
- Posts: 25
- Joined: Thu Aug 04, 2011 10:36 am
- Location: Poland
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.521 :
Indeed, quite tricky
-
- Posts: 2
- Joined: Wed Aug 31, 2011 11:22 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.521 :
I am still not getting it. It will always go to catch block after that statement. Then how will "default" be printed ?
-
- Site Admin
- Posts: 10045
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.521 :
What will it execute after finishing the catch block?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 ?
If you like our products and services, please help us by posting your review here.
Re: About Question enthuware.oce-ejbd.v6.2.521 :
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.
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.
-
- Site Admin
- Posts: 10045
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.521 :
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.
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.
If you like our products and services, please help us by posting your review here.
-
- Posts: 26
- Joined: Fri Jul 06, 2012 1:08 am
- Location: Poland
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.521 :
That's quite tricky!!:) And it's good that you haven't decided to change the answer.
-
- Posts: 38
- Joined: Fri Aug 16, 2013 11:37 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.521 :
Checking alertness of candidate in this question
-
- Posts: 31
- Joined: Sun Dec 27, 2015 1:47 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.521 :
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)
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)
-
- Posts: 1
- Joined: Thu May 11, 2017 3:13 am
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.521 :
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 !
Otherwise, please remove "none of these" answer from the answer's list.
In my opinion right now, It's no trick, it's wrong !
Who is online
Users browsing this forum: No registered users and 31 guests