GiventhisfragmentfromaJavaEEdeploymentdescriptor:341.<error-page>342.<exception-t

15 查阅

GiventhisfragmentfromaJavaEEdeploymentdescriptor:341.<error-page>342.<exception-type>java.lang.Throwable</exception-type>343.<location>/mainError.jsp</location>344.</error-page>345.<error-page>346.<exception-type>java.lang.ClassCastException</exception-type>347.<location>/castError.jsp</location>348.</error-page>IfthewebapplicationassociatedwiththefragmentabovethrowsaClassCastException.Whichstatementistrue?()

A.Thedeploymentdescriptorisinvalid.

B.ThecontainerinvokesmainError.jsp.

C.ThecontainerinvokescastError.jsp.

D.NeithermainError.jspnorcastError.jspisinvoked.

参考答案:

参考C

计算机考试