READ Free Dumps For Oracle- 1z0-899
Question ID 4629 | A web application wants to register a new servlet at runtime using one of the servletContext.addServlet methods. |
Option A | A. AsyncListner.oncomplete |
Option B | B. Servlet.init |
Option C | C. ServletContextListener.contextInitialize |
Option D | D. ServletrequestListener.contextInitialize |
Correct Answer | C |
Question ID 4630 | You want to create a filter for your web application and your filter will implement |
Option A | A. Your filter class must implement an init method and a destroy method. |
Option B | B. Your filter class must also implement javax.sarvlat.FilterChain. |
Option C | C. When your filter chains to the next filter, it should pass the same arguments it received in its doFilter method. |
Option D | D. The method that your filter invokes on the object it received that implements javax – servlet.Filterchain can invoke either another filter or a servlet. |
Option E | E. Your filter class must implement a doFilter method that takes, among other things, an HttpServletRequest object and an HttpServletresponse object. |
Correct Answer | A,D |