hi, The ServletContext object are accessible from which of the following objects? Please select three correct answers. A.HttpServlet B.GenericServlet C.HttpSession D.ServletConfig E.ServletResponse
Here i have selected A,B and D answer.but they told A,C and D is the answer.Please anybody clear this doubt.I am waiting for the updates.
Thanks and Regards<br />Naresh govindaswamy
posted 9 years ago
The method from the HttpSession exists but is depreciated from version 2.1 and should not used anymore.
Generic servlet is a abstract class and can not be initialized but implements the servlet interface. The HttpServlet uses the inherited method from Generic Servlet for getting the ServletContext getServletContext.