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 can we store the file in the oracle database?

0 Answers  


What are the common jdbc exceptions?

0 Answers  


Statement, PrepareStatement and Callable all these are interfaces. Thought it is a interface how come we are creating objects and calling methods("preparestatement()") in it. In which class this method is defined. Please let me know. Thanks in advance. example: PreparedStatement pre = con.prepareStatement( "UPDATE COFFEES SET SALES = ? WHERE COF_NAME LIKE ?");

2 Answers  


What are different types of JDBC Drivers?

0 Answers  


List the advantages of using datasource?

0 Answers  


What are the benefits of PreparedStatement over Statement?

0 Answers  


What is the syntax of URL to get connection?

1 Answers  


Explain about DSN?

0 Answers   Infosys,


How to connect multiple database in jdbc?

0 Answers  


What are common JDBC Exceptions?

0 Answers  


How can I create a custom RowSetMetaData object from scratch?

0 Answers  


What is the latest version of JDBC? What are the new features added in that?

0 Answers  


Categories