aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Ambigues Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Ambigues Question" Watch "Ambigues Question" New topic
Author

Ambigues Question

Milton Ochoa
Ranch Hand

Joined: Oct 23, 2007
Posts: 336

Hi Rancher,

A mock exam of javabeat, says:

Which of the following statements are true about Servlet Contexts?

a. A Web Application may be having more one instace of a Servlet Context object.
b. All the Servlets in a Web Application will be sharing the same Servlet Context information.
c. Servlet Context Information are declared in Web Deployment Descriptor file.
d. It is also possible to define Servlet Context Information at the run-time.

The answer are: a, b, c

but the answer a, for me is wrong, because I am assuming that the webapp is running on only one containter; obiviosly if the webapp is running in more of one container, they will have more of one instance of Servlet Context.

My Question is, if ones of this question appears on the real exam, I am mandatory to think that the webapp is running on a distribuied system ?

sorry my bad english

thanks in advance
Omar Al Kababji
Ranch Hand

Joined: Jan 13, 2009
Posts: 357
answer (a) is correct because if your application runs in a distributed system the there will be one ServletContext per VM. for the real exam don't worry you will be given the number of correct answers so you will have to choose the most corect. sometimes you may find more than one correct answer but by knowing the number of correct answers then you can select just the most accurate and correct answers.

what i mean is that in the case of this question if you knew that there were three correct answers, then for sure you would have choosed (a) too ;)


Omar Al Kababji - Electrical & Computer Engineer
[SCJP - 90% - Story] [SCWCD - 94% - Story] [SCBCD - 80% - Story] | My Blog
Milton Ochoa
Ranch Hand

Joined: Oct 23, 2007
Posts: 336

you all right, thank you for the tip.

xD

By the way,

How long are you been studing? I see that you are preparing for the SCWCD
Omar Al Kababji
Ranch Hand

Joined: Jan 13, 2009
Posts: 357
Its around two weeks, I am waiting that my company buys me the voucher. however I have been working with servlets/JSPs for a long time ;)
Milton Ochoa
Ranch Hand

Joined: Oct 23, 2007
Posts: 336

you mean, that you are ready to take the exam, good luck to you.

Probably, I will read you post, announcing that you pass the SCWCD. xD

I will take my test, very soon, too!

xD
Omar Al Kababji
Ranch Hand

Joined: Jan 13, 2009
Posts: 357
good luck to you too ;).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ambigues Question