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 are the basic exceptions in jdbc?

1040


What is metadata in programming?

953


What is the use of callablestatement? Name the method, which is used to prepare a callablestatement.

853


What is a jdbc connection string?

876


What are the ddl statements?

812


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

976


What are database warnings in jdbc and how can we handle database warnings in jdbc?

953


Which package contains jdbc api?

1000


What is jdbc architecture in java?

892


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

1009


What should be done for auto generating primary key id in a table ?

923


State the three different ways in which you can create a table?

916


How many rowset are available in jdbc?

1051


Is jdbc database independent?

918


List some new features available in jdbc 4.0?

876