The following question is the number 54 question on HFSJ Mock Exam:
Given a portion of
Java EE web application�s deployment descriptor:
62. <error-page>
63. <exception-type>IOException</exception-type>
64. <location>/mainError.jsp</location>
65. </error-page>
66. <error-page>
67. <error-code>404</error-code>
68. <location>/notFound.jsp</location>
69. </error-page>
A. The deployment descriptor is not valid.
B. If the application throws an IOException, nothing will be served.
C. If the application throws an IOException, notFound.jsp will be served.
D. If the application throws an IOException, mainError.jsp will be served.
The correct answers are given in the book are: A
Isn't B is correct as well? Because the DD is not valid, when an IOException is thrown nothing (mainError.jsp or notFound.jsp) will be served.
I couldn't find any correction on
http://oreilly.com/catalog/9780596516680/errata/9780596516680.0708 Like to know what others think about this question as well. Thanks.