What are the difference between HttpServlet and
GenericServlets?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of servlet?

669


When should you prefer to use doget() over dopost()?

661


Which method of the httpservletrequest object is used?

569


What are the differences between servlet context vs servlet config?

578


What is the use of java servlet api?

602






When Servlet is unloaded?

628


What is the life cycle of a servlet?

791


Which event is fired at the time of setting, getting or removing attribute from application scope?

615


Which is the methods of generated servlet?

682


What is difference between get and post method?

572


How native code can be used in a servlet?

3520


What is servlet invoker?

602


What are the supporting protocol by HttpServlet ?

657


What are the two important api's in for servlets?

590


What is the element?

590