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

how you will execute the many tables data

1 Answers   Wipro,


What are the different types of resultset?

0 Answers  


How to know howmuch data is truncated?

0 Answers   Mastek,


write a query to select name from one table which has id,name and salary from another table which has id, sal where the salary is the second maximum

3 Answers   Bosch, HireCraft, Infosys,


What is a statement?

0 Answers  






Is jdbc open source?

0 Answers  


Are all the required JDBC drivers to establish connectivity to my database part of the JDK?

0 Answers  


What do you understand by jdbc datasource?

0 Answers  


what is metadata and it's use?

3 Answers  


What is resultset?

0 Answers  


what is CallableStatement and what is its usage?

1 Answers  


Which is better jpa or jdbc?

0 Answers  


Categories