| Author |
Mock Question: Why Only 1 Correct Answer when...
|
Ijlal Jinnah
Greenhorn
Joined: Nov 25, 2001
Posts: 21
|
|
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.
|
Syed Ijlal Hussain-Jinnah<br /> <br />SCWCD, OOAD(IBM-486), SCJP-2
|
 |
ersin eser
Ranch Hand
Joined: Feb 22, 2001
Posts: 1072
|
|
|
There is no such a code # in javax.servlet.ServletException
|
 |
Ijlal Jinnah
Greenhorn
Joined: Nov 25, 2001
Posts: 21
|
|
|
Thanks pal! I get the catch.
|
 |
james edwin
Ranch Hand
Joined: Nov 22, 2001
Posts: 393
|
|
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 ]
|
Regards,
James
|
 |
Peter den Haan
author
Ranch Hand
Joined: Apr 20, 2000
Posts: 3252
|
|
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 ]
|
 |
 |
|
|
subject: Mock Question: Why Only 1 Correct Answer when...
|
|
|