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

Why do I have to reaccess the database for Array, Blob, and Clob data?

1143


Why do I get UnsatisfiedLinkError when I try to use my JDBC driver?

1065


How do I insert an image file (or other raw data) into a database?

1013


Differentiate between a statement and a preparedstatement.

1104


How the JDBC application works?

1005


How can we move the cursor in a scrollable result set?

1001


Why did my jdbc code throw a rollback sqlexception?

963


What's the benefit for specifying constraints like not null, primary key explicitly instead of specifying it against the column ?

1024


What does it mean to "materialize" data?

1063


What are the functions of the jdbc connection interface?

1011


What are the common tasks of JDBC?

1042


List the advantages of using datasource?

1043


Where is jdbc used?

1039


What is layer in communication?

939


What is resultset in jdbc with example?

991