Difference between Generic Servlet and HTTP Servlet?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
What is Type-2 Driver and when this driver is used?
PreparedStatement is a pre compiled statement but where it's pre compiled ?
What are the differences between statement and preparedstatement interface?
What are the differences between setmaxrows(int) and setfetchsize(int)?
Why did my jdbc code throw a rollback sqlexception?
How can we set null value in jdbc preparedstatement?
How is jndi useful for Database connection?
What is the use of statement in jdbc?
Explain the necessary steps to connect to the database in java?
What are the flow statements of jdbc?
What is jdbc resultsetmetadata interface?
What is jdbc stand for?