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 difference between Forward() and sendRedirect() methode?

14 Answers   Polaris,


Explain life cycle of a Servlet?

2 Answers  


What are the classes and interfaces for servlets?

4 Answers  


What is the life-cycle of servlets?

0 Answers  


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

2 Answers  


Can I override destroy() method of Servlets?

4 Answers   Accenture,


What is filter? Can filter be used as request or response?

1 Answers  


The code in a finally clause will never fail to execute, right?

0 Answers  


What are different ways for servlet authentication?

0 Answers  


difference between forward and sendredirect

6 Answers   Accenture,


what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?

0 Answers  


Which HTTP method is non-idempotent?

0 Answers  


Categories