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

What is Type-2 Driver and when this driver is used?

2 Answers  


PreparedStatement is a pre compiled statement but where it's pre compiled ?

4 Answers  


What are the differences between statement and preparedstatement interface?

0 Answers  


What are the differences between setmaxrows(int) and setfetchsize(int)?

0 Answers  


Why did my jdbc code throw a rollback sqlexception?

0 Answers  






How can we set null value in jdbc preparedstatement?

0 Answers  


How is jndi useful for Database connection?

1 Answers  


What is the use of statement in jdbc?

0 Answers  


Explain the necessary steps to connect to the database in java?

0 Answers  


What are the flow statements of jdbc?

0 Answers  


What is jdbc resultsetmetadata interface?

0 Answers  


What is jdbc stand for?

0 Answers  


Categories