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...


why are using HttpServlet in realtime projects and why are
not using Genericservlet

Answers were Sorted based on User's Feedback



why are using HttpServlet in realtime projects and why are not using Genericservlet..

Answer / arun sharma

HttpServlet is Http Protocol Specific whereas Generic
servlet is protocol independent and as we know that on
world wide web only http protocol exists thats why most of
the servlets are developed using HttpServlet class. but id
we want proocol independent servlet in that case we develop
servlet using GenericServlet class.

Is This Answer Correct ?    13 Yes 1 No

why are using HttpServlet in realtime projects and why are not using Genericservlet..

Answer / prakash

Generic servlet is a abstract class which is not
implementing service() method,to serve the client requests
service method has to execute. and also generic servlet is
containing all general statements,and methods which are
changing by protocol wise.

But HttpServlet is a Http protocol specific class,it is also
one abstract class,eventhough all methods got implemented it
is qualified as abstract class to restrict the creation of
objects. Httpservlt class is implementing service() method
to serve the client requests.
so we are using HttpServlet in realtime projects.

Is This Answer Correct ?    8 Yes 1 No

Post New Answer

More Servlets Interview Questions

What is Request Dispatcher?

1 Answers  


how can we execute servelt? what the use ".war" or ".jar" file creation

3 Answers   CTS,


What is the difference between portlet and servlet?

0 Answers  


What is servlet attributes and their scope?

0 Answers  


Can we override servlet service method?

0 Answers  


Can we call destroy() method inside the init() method? What happens when we do so?

9 Answers   Ericsson,


How is an application exception handling is done using a servlet?

0 Answers  


A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?

0 Answers  


What is the need of session tracking in HttpServlet ?

3 Answers  


What are cookies and how will you use them?

2 Answers  


describe all about advanced java with presentation

4 Answers   Sun Microsystems,


What's the advantages using servlets than using cgi?

0 Answers  


Categories