阿摩線上測驗 登入

試題詳解

試卷:無年度 - Java EE 6 Web Component Developer Certified Expert Exam:1z0-899(1-50)#84202 | 科目:OCE

試卷資訊

試卷名稱:無年度 - Java EE 6 Web Component Developer Certified Expert Exam:1z0-899(1-50)#84202

科目:OCE

27 Given the java code snippet in contextInitialized method of a ServletContextListner: ServletRegistration.Dynamic sr = (ServletRegistration.Dynamic)sc.addServlet ("myServlet", myServletClass); sr.addMapping("/abc"); sr.setServletSecurityElement(servletSecurityElement); sr.addMapping("/def"); Which statement is true?
(A) "/abc" is mapped to "myservlet". The servletSecurityElementy applies to both "/abc" and "/def".
(B) Both "/abc" and "/def" are mapped to "myservlet". The servletSecurityElementy applies to "/abc".
(C) Both "/abc" and "/def" are mapped to "myservlet". The servletSecurityElementy applies to "/def".
(D) Both "/abc" and "/def" are mapped to "myservlet". The servletSecurityElementy applies to both "/abc" and "/def".
(E) Both "/abc" and "/def" are mapped to "myservlet". The servletSecurityElementy applies to "/abc", but the behavior for "/def" is not specified.
正確答案:登入後查看