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 are the jobs performed by servlets?

583


What is URL Encoding?

625


What is the use of servlet context?

535


Explain servlet events?

565


How to get the IP address of client in servlet?

630






How to generate the server side programming and the advantages of it over the other languages?

563


If a servlet is not properly initialized, what exception may be thrown?

628


How does java thread pool work?

548


What is the directory structure of web application?

528


Write a servlet to upload file on server.

599


How will two or three servlets interact or communicate with each other?

913


What do you mean by cgi and what are its drawbacks?

531


What do you mean by request dispatcher in servlet?

611


What is the inter-servlet communication?

702


What is MIME Type?

665