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

There is only one main difference between CGI and Servlet that CGI is not that much efficient as servlets ,because Wen each time request cames to CGI it ll start from first i.e loading,instantiation and ll consume more time but in the case of Servlet only once server is loaded and instance is created and it is reused to other request and wenever the new request cames just it ll make use of same object

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How the typical servlet code look like ?

1235


Which interface should be implemented by all servlets?

1216


Why doesn’t a servlet include main()? How does it work?

1160


how many jsp scripting elements are there and what are those?

1017


What is cookies in servlet with example?

1123


What is Client-Server Computing?

2421


Why filter is used in servlet?

996


What is difference between cookies and httpsession?

1095


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

1012


Explain url encoding in servlet?

1052


What is the difference between jsp and servlet life cycle?

1223


What is servlet interface?

1232


What is the difference in between the httpservlet and generic servlet?

1122


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

1048


Difference between get and post in java servlets?

1038