Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


What are the difference between HttpServlet and
GenericServlets?

Answers were Sorted based on User's Feedback



What are the difference between HttpServlet and GenericServlets?..

Answer / himanshu verma

Generic Servlet is the general class to implement servlets.
it can use any protocol like MIME, SMTP etc. while HTTP
Servlet is specially designed for HTTP protocol.

Is This Answer Correct ?    2 Yes 0 No

What are the difference between HttpServlet and GenericServlets?..

Answer / niranjanravi

The diff is that inGeneracicServlet we had to implement the
service()method the GenericServlets service() method is
declared as abstract.But the Generic Servlet is not
implementing keeping the HttpSErvers in mind. Methods we
have in this class are
init()
log()
service()
While implementing the HTTP Servlet the service() method is
already implemented .service()method of HTTP sevlet is
declared as protected.the HTTPServlet is implementing
keeping the HttpSErvers in mind. Methods we have in this
class are
doGet(),doDelete(),doPost()

Is This Answer Correct ?    3 Yes 6 No

Post New Answer

More Servlets Interview Questions

What are the uses of servlet

0 Answers  


How multiple simultaneous requests can be handled by servlets?

2 Answers  


Why servlet is used as controller ? Not JSP? I want complete explation?

0 Answers   Tech Mahindra,


What is forward() and include() of servlets RequestDispatcher interface?

6 Answers   HCL,


How to prevent browser from caching the page content?

1 Answers  






What is cookie in servlet?

0 Answers  


What are session variable in servlets?

0 Answers  


Explain the concept of ssi ?

0 Answers  


What is dispatcher servlet?

0 Answers  


How many ways are available to ger RequestDispatcher object?

4 Answers   Polaris,


What is servlet interface?

0 Answers  


Can you create a deadlock condition on a servlet?

0 Answers  






Categories