A web application wants to register a new servlet at runtime using one of the servletContext.addServlet methods. In the implementation of which method is it legal to perform this operation? A. AsyncListner.oncomplete B. Servlet.init C. ServletContextListener.contextInitialize D. ServletrequestListener.contextInitialize

You want to create a filter for your web application and your filter will implement .servlet.Filter. Which two statements are true? (Choose two) A. Your filter class must implement an init method and a destroy method. B. Your filter class…