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-ty

题目

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.


相似考题