What is httpservlet and how it is different from genericservlet?



What is httpservlet and how it is different from genericservlet?..

Answer / Hitendra Kumar Pandey

HTTPServlet is a specific type of Servlet that deals with HTTP protocol-based communication. It extends the GenericServlet class, which provides basic Servlet functionality independent of any protocol. The key difference lies in their implementation details: HTTPServlet overrides methods like doGet() and doPost(), while GenericServlet overrides service() method.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Servlets Interview Questions

What is servlet tunnelling?

1 Answers  


give the syntax of doGet() and doPost()?

2 Answers  


how many jsp scripting elements are there and what are those?

1 Answers  


Why do we have servlet listeners?

1 Answers  


What is the need of session tracking in web application?

1 Answers  


Is it good idea to create servlet constructor?

1 Answers  


How to get the actual path of servlet in server?

1 Answers  


How can we implement a jsp page?

1 Answers  


Difference between java beans & servlets?

1 Answers  


servlet life cycle?

4 Answers   eMids, Wipro,


What is the <load-on-startup> element?

1 Answers  


1.HttpSession 2.Hidden fields 3.URL Rewriting these primitive type of Session maintainance. What is the other type of process that could help to maintain the Session? pls Explain the process if u know?

5 Answers   OnMobile,


Categories