Difference between Generic Servlet and HTTP Servlet?

Answers were Sorted based on User's Feedback



Difference between Generic Servlet and HTTP Servlet?..

Answer / kiran

GenericServlet is protocol independent and which doesn't support http get/post requests. where as HttpServlet is Protocol specific.

Is This Answer Correct ?    1 Yes 0 No

Difference between Generic Servlet and HTTP Servlet?..

Answer / ashwitha

generic is protocol independent and HTTPservlet is a protocol dependent.
Generic cannot handle cookie and URLRewriting whereas HTTP servlet can.
In generic servlet without having service()cannot deploy the servlet whereas in HTTP servlet without having service() can deploy.
Generic implements from servlet and servletConfig interfaces whereas HTTP extended from generic servlet.
Generic overrides service() whereas HTTP overrides do****().

Is This Answer Correct ?    0 Yes 0 No

Difference between Generic Servlet and HTTP Servlet?..

Answer / ramamohan reddy

Generic Servlet has init() method whereas Httpservlet
doesnot have.and Generic Servlet is the super class of the
HttpServlet.

Is This Answer Correct ?    46 Yes 50 No

Post New Answer

More JDBC Interview Questions

Give steps to connect to the db using jdbc?

0 Answers  


How transactions are performed using JDBC ?

2 Answers  


What type of drivers have you used?

1 Answers  


Which database is used with java?

0 Answers  


What is jdbc architecture?

0 Answers  


What are the different types of interfaces in the api component?

0 Answers  


What is a Connection?

1 Answers  


How to use JDBC API to call Stored Procedures?

0 Answers  


What is JDBC Savepoint? How to use it?

0 Answers  


Jdbc-odbc bridge is multi-threaded or not?

0 Answers  


What are the main steps in java to make JDBC connectivity?

0 Answers   UGC Corporation,


JDBC Drivers properties?

1 Answers   Infosys,


Categories