What is Generic Servlet and how it is different from Http
Servlet?

Answer Posted / devarathnam

Hi...The main difference between the Generic and
HttpServlet is :Generic Servlet is Protocol Independent
Where as HttpServlet is protocol dependent ,supports only
HTTP Protocols.And it is a sub class of
GenericServlet,HttpServlet is a Abstract class.

Is This Answer Correct ?    17 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by singlethreadmodel interface?

572


Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?

761


How can we perform any action at the time of deploying the project?

615


What is the web server used for running the Servlets?

573


What are the functions of the servlet container?

1019






Which are the different ways you can communicate between servlets?

512


Is java servlet still used?

582


Is servlet a framework?

534


How can we include static files in the jsp page?

599


How to rectify errors in java servlet while compilation?

513


What do you mean by request dispatcher in servlet? Also explain its methods.

603


How is a servlet implemented in code?

557


Differentiate between get and post?

675


Why jsp is better than servlet?

524


Name the packages that work with servlet?

535