• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Mock Question: Why Only 1 Correct Answer when...

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Everybody!
Take a look at the question from JavaRanch mock:
Question Bank ID : 10 Choose the 1 correct answer
<error-page>
<error-code>404</error-code>
<location>/not_found.html</location>
</error-page>
The above entry in the Deployment Descriptor will do what?


A. Route any 404 requests to not_found.html

B. Route any exception thrown in a servlet to not_found.html

C. Route any request to your web application for a page or servlet that cannot be found to not_found.html

D. Route any ServletExceptions with the code 404 thrown from your servlet to not_found.html
According to the mock, the correct answer is 'C' only. I say, "What's the difference between C and D? Aren't they both the same thing worded differently?". I think that the answer should be both C and D. Please enlighten...
Thanks.
 
Ranch Hand
Posts: 1072
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is no such a code # in javax.servlet.ServletException
 
Ijlal Jinnah
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks pal! I get the catch.
 
Ranch Hand
Posts: 393
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
Can u pls tell me how did u preparaed for IBM 486 exam and how much time u took to prepare for this exam and when did u clear this ?
This information will be great help.
Thanks
[ February 05, 2002: Message edited by: james edwin ]
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
James, if you want to start a new and completely different discussion it's usually best to start a whole new thread. Anyway, this question is best posed in our OO, Patterns, UML and Refactoring forum. Or rather, best not posed, since all you have to do is read the many discussions where this topic is already adequately covered. Some would say "beaten to death" is more like it.
Thanks.
- Peter
[ February 06, 2002: Message edited by: Peter den Haan ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic