Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is JDBC Statement?

942


Which package contains jdbc api?

993


What is the difference between jdbc and jndi?

940


Why we use jdbc instead of odbc?

916


What is jdbc and odbc in java?

868


What are the differences between statement and preparedstatement interface?

927


Which interface handles transaction management in jdbc?

1050


How does jdbc driver work?

925


What is ojvm used for?

928


Explain in detail about JDBC and its general features?

903


How java can be connected to a database?

1035


How to use JDBC API to call Stored Procedures?

975


What is jdbc driver manager?

898


When do we get java.sql.SQLException: No suitable driver found?

905


What is jdbc and its types?

896