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?

Answers were Sorted based on User's Feedback



Difference between Generic Servlet and HTTP Servlet?..

Answer / guest

Generic servlet is Protocol independent
HTTP Servlet is protocol dependent

Is This Answer Correct ?    157 Yes 9 No

Difference between Generic Servlet and HTTP Servlet?..

Answer / b.s.anand

Generic Servlet does not contain doGet() and doPost()
methods,you have to provide your own implementation of doGet
() and doPost() methods where as HttpServlet has got doGet
() and doPost() methods which you have to override in your
implemented class

Is This Answer Correct ?    106 Yes 11 No

Difference between Generic Servlet and HTTP Servlet?..

Answer / shakti

1.Http servlet uses http protocol where as in generic
servlet it does not use the protocol.

2. There are two methods in Http protocol i.e doGet() and
doPost().

Is This Answer Correct ?    78 Yes 10 No

Difference between Generic Servlet and HTTP Servlet?..

Answer / venkata ramana chimmana

1.Http servlet uses http protocol where as in generic
servlet it does not use the protocol.This servlet we can
uses in application server and web server.This servlet also
supports the anothor protocols like Tcp-ip also.

2. There are two methods in Http protocol i.e doGet() and
doPost().This sevlet take HTTP requst only,and give Only
HTTP responce only.This type of servlets can handle only
web server.

Is This Answer Correct ?    37 Yes 8 No

Difference between Generic Servlet and HTTP Servlet?..

Answer / name

HTTP Servlet for only HTTP Protocol

Is This Answer Correct ?    31 Yes 5 No

Difference between Generic Servlet and HTTP Servlet?..

Answer / sagar kulkarni.

Http servlet is the sub class of Generic sevlet so all the
life cycle methods available in the generic servlets are
available to the Http servlets. Http servlets provides
methods that supports cookies,sessions etc.while generic
servlets are not. Http servlet request,Http servlet
responce methods extends generic servlet request,generic
servlet responce.

Is This Answer Correct ?    31 Yes 7 No

Difference between Generic Servlet and HTTP Servlet?..

Answer / javaguru

Thru Generic servlet we can establish Protocal indipendent Communication(mobile,PDA etc),where as Httpservlet provides only Client (browser),server communication thru Http protocal,in which keep track Session...

Is This Answer Correct ?    27 Yes 4 No

Difference between Generic Servlet and HTTP Servlet?..

Answer / 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

Difference between Generic Servlet and HTTP Servlet?..

Answer / sudha rani

A GenericServlet has a service() method aimed to handle
requests. HttpServlet extends GenericServlet and adds
support for doGet(), doPost(), doHead() methods (HTTP 1.0)
plus doPut(), doOptions(), doDelete(), doTrace() methods
(HTTP 1.1).
Both these classes are abstract.

Is This Answer Correct ?    20 Yes 6 No

Difference between Generic Servlet and HTTP Servlet?..

Answer / ankit sinhal

GenericServlet is might not used be for the http services and may be used for the FTP services , and it is protocol independant where as HttpServlet is Protocol dependant.In GenericServlets you cannot use Cookies or HttpSession.Session tracking is not possible, redirection is not possible. Http servlets overrides doGet and doPost methods. Generic servlet overides service method. Generic servlet is used for small data transfer whereas HttpServlet is used for huge data transfer.

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More JDBC Interview Questions

What port does jdbc use?

0 Answers  


How many locking systems are there in jdbc?

0 Answers  


How are jdbc statements used?

0 Answers  


Write an sql to find all records having all upper case alphanumeric characters in a field ?

0 Answers  


How to connect multiple database in jdbc?

0 Answers  


How to store images in database?

2 Answers  


What is meant by jdbc?

0 Answers  


What is jdbc connection interface?

0 Answers  


Hi my doubt is that preparedStatement is a interface means which has no implemenation.plz go thru the code below String sql = "SELECT * FROM movies WHERE year_made = ?"; prest = con.prepareStatement(sql); prest.setInt(1,2002); ResultSet rs1 = prest.executeQuery(); Now setInt and executeQuery how it works since it is interface it does not have implementation how it works, how executeQuery returns result from database as executequery method has no implementation even in Statement interface.

4 Answers   Cybermate, Hexaware,


What is JDBC Batch Processing and what are it’s benefits?

0 Answers  


Why do we use jdbc statements?

0 Answers  


Why is odbc needed?

0 Answers  


Categories