Oracle
1Z0-899 · Question #186
1Z0-899 Question #186: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-899 to reveal the answer and full explanation for question #186. The question stem and answer options stay visible for context.
Question
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?
Options
- A"/abc" is mapped to "myservlet".
- BBoth "/abc" and "/def" are mapped to "myservlet".
- CBoth "/abc" and "/def" are mapped to "myservlet".
- DBoth "/abc" and "/def" are mapped to "myservlet".
- EBoth "/abc" and "/def" are mapped to "myservlet".
Unlock 1Z0-899 to see the answer
You've previewed enough free 1Z0-899 questions. Unlock 1Z0-899 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.