GenericServlet is for servlets that might not use HTTP, like for instance FTP service.As of only Http is implemented completely in HttpServlet. The GenericServlet has a service() method that gets called when a client request is made. This means that it gets called by both incoming requests and the HTTP requests are given to the servlet as they are.:Generic Servlet:- A GenericServlet has a service() method to:GenericServlet is not specific any protocol .The GenericServlet has a service()method that gets called when a client request is made.:When one writes a Servlet code, he must implement this interface directly or indirectly. Here, one always implements the interface indirectly by extending either the javas.servlet.GenericServlet or javax.servlet.http.HttpServlet classes.:GenericServlet has service() method, to handle client request.:Generic servlet is the general purpouse servlet . where as Http servlet is protocal specific.:Generic Servlet is the old technique it has 3 life cycle mehtods
Category:Servlet Interview Questions
No comments:
Post a Comment