What is the difference in between the HTTPServlet and Generic Servlet. Expalin their methods. Tell me their parameter names too

Showing Answers 1 - 1 of 1 Answers

MSachin

  • Aug 16th, 2005
 

Generic Servlet class is a base class that specifies the class structure for protocol independent servlet and acts as a base for different servlets.  
 
HttpServlet is a servlet that extends Generic Servlet and is specialised to work on HTTP protocol.  
 
Generic Servlet has ServletRequest and ServletResponse methods while the HttpServlet has the HttpServletRequest and HttpServletResponse methods.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions