READ Free Dumps For Oracle- 1z0-899
Question ID 4691 | For which three events can web application event listeners be registered? (Choose three.) |
Option A | A. when a session is created |
Option B | B. after a servlet is destroyed |
Option C | C. when a session has timed out |
Option D | D. when a cookie has been created |
Option E | E. when a servlet has forwarded a request |
Option F | F. when a session attribute value is changed |
Correct Answer | A,C,F |
Question ID 4692 | To add a servlet to a context that has not been declared either via annotation or via the descriptor, during context initialization time the following API can be used (Choose three.) |
Option A | A. servletContext.addServlet(“myServletName”, “MyServlet”); |
Option B | B. servletContext.addServlet( (<Class extends |
Option C | C. servletContext.addServlet(myServlet); |
Option D | D. servletContext.addServlet( (“myServletName”, <Class extends Servlet>)gerClass().getClassLoader().loaderClass(“myServlet”)); |
Option E | E. servletContext.addServlet(“myServletName”, MyServlet); |
Correct Answer | A,D,E |