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.