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's the difference between authentication and authorization?

548


Describe servlet?

578


How do we translate jsp?

575


What is servlet and its advantages?

525


what is multiple server?

1758






What are common tasks performed by Servlet Container?

765


Is servlet synchronized?

603


What is the inter-servlet communication?

700


What is http servlet? Explain with the help of an example.

581


What are the ways to handle multi-threading in servlets?

595


Write a simple servlet program to print the contents of html.

549


What is the use of httpservletrequestwrapper and httpservletresponsewrapper?

540


What are advantages of servlets over cgi?

626


What are the life cycle methods of a servlet?

591


What is url encoding and url decoding

584