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 we use jdbc instead of odbc?

986


Where can I find ojdbc14 jar file?

997


What is the significance of DataBaseMetaData.tableIndexStatistics? How to obtain and use it?

984


How do I write Greek ( or other non-ASCII/8859-1 ) characters to a database?

1001


How can you retrieve data from the resultset using jdbc?

1073


What are different types of ResultSet?

1066


Expalin the method of calling a stored procedure from jdbc.

974


How to check jdbc connection in java?

938


What are the considerations for deciding on transaction boundaries?

1013


How do I set properties for a JDBC driver and where are the properties stored?

966


What is isolation level? How to set it?

2218


Explain the locking system in jdbc?

951


What are common JDBC Exceptions?

986


password, is stored in as plain text. What can I do to protect my passwords?

975


what is the meaning of following code snippets Class c=class.forName(driverClassName); Driver d=(driver)c.newInstance();

5052