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

what is the advantage of using Servlets over CGI programming?

Answer Posted / janet

Servlets are only instantiated when the client first
accesses the program. All subsequent accesses are done to
that instance.This keeps the response time of servlets lower
than that of CGI programs, which must be run once per
hit.also because servlet is instantiated only once,all
accesses are put through that one object. This helps in
maintaining objects like internal connection,pooling or user
session tracking and lots of other features.

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you load an image in a Servlet?

1195


What's the use of servletcontext?

1146


What is session?

1073


What are different ways for servlet authentication?

1109


Should I override the service() method?

1092


What are the functions of an intercepting filter?

950


How can I send user authentication information while making URL Connection?

1006


How to find whether a parameter exists in the request object?

1110


What are sessions in servlets?

1066


Which interface must be implemented by all servlets?

1346


How we can call a jsp from the servlet?

1011


Can we use threads in Servlets?

1144


What is the purpose of dispatcherservlet properties?

1118


If a servlet is not properly initialized, what exception may be thrown?

1184


What is meant by Servlet? What are the parameters of service method?

1060