• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Ijlal Jinnah
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • 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.
 
ersin eser
Ranch Hand
Posts: 1072
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thanks pal! I get the catch.
 
james edwin
Ranch Hand
Posts: 393
  • Mark post as helpful
  • send pies
  • 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 ]
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic