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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the differences between jsp and servlet.

1044


Describe servlet?

1091


How does Cookies work in Servlets?

1217


Which are the different ways you can communicate between servlets?

1051


What is the type of method for sending request from http server?

1173


Where do you define dispatcherservlet?

1102


What are sessions in servlets?

1108


What is the need of session tracking in web application?

1082


How can we create deadlock situation in servlet?

1485


What are the different mode that servlets can be used?

1078


How a servlet is unloaded?

1133


Who is responsible for writing a constructor?

1309


What do you mean by web applications?

1274


What are the differences between servlet context vs servlet config?

1138


What exactly is a servlet?

1063