0
SCWCD 시험 준비 중입니다.이 질문에 대한 질문이 있습니다.web.xml의 오류 페이지
웹 응용 프로그램 배포 설명자 중 2 개가 유효합니까? (두를 선택합니다.)
A. <error-page>
<exception-type>*</exception-type>
<location>/error.html</location>
</error-page>
B. <error-page>
<exception-type>java.lang.Error</exception-type>
<location>/error.html</location>
</error-page>
C. <error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/error.html</location></error-page>
D. <error-page>
<exception-type>java.io.IOException</exception-type>
<location>/error.html</location>
</error-page>
E. <error-page>
<exception-type>NullPointerException</exception-type>
<location>/error.html</location>
</error-page>
정답은 오류의 Throwable의 서브 클래스이기 때문에 캔트 상위를가 유효 이유 CD.but입니다. Error
및 Exception
클래스의 JavaDoc에서