Difference between Generic Servlet and HTTP Servlet?
Answer Posted / sonia
GenericServlet belongs to javax.servlet package
GenericServlet is an abstract class which extends Object and
implements Servlet, ServletConfig and java.io.Serializable
interfaces.
The direct subclass to GenericServlet is HttpServlet.It is a
protocol-independent servlet.
To write a GenericServlet you need abstract service() to be
overridden.
HttpServlet:
HttpServlet belongs to javax.servlet.http package
This is an abstract class which extends GenericServlet and
implements java.io.Serializable
A subclass of HttpServlet must override at least one method
of doGet(), doPost(),doPut(), doDelete(), init(), destroy(),
getServletInfo()
Is This Answer Correct ? | 22 Yes | 8 No |
Post New Answer View All Answers
Is jdbc part of j2ee?
What do you understand by jdbc datasource?
Which is better odbc or jdbc?
What is sqlwarning?
Why do we use jdbc?
What is jdbc odbc bridge?
What does the connection object represents?
What is the use of dialect?
How MS-Access DB can be accessed over a network, using JDBC API?
Explain the life cycle of jdbc.
How to know howmuch data is truncated?
What is the function of drivermanager class?
What is jdbc and its advantages?
What is odbc and jdbc?
What is transaction processing in jdbc?