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

What are some disadvantages of storing session state in cookies?

1023


What is cookie in servlet?

1060


What are the phases of servlet life cycle?

1116


What is Servlets and explain the advantages of Servlet life cycle?

1109


What is the use of attribute in servlets?

1048


What if we pass negative value in load-on-startup?

1284


What is cgi?

1028


Which exception is thrown if the servlet is not initialized properly?

1028


What is the directory structure of web application?

989


How to get the path of servlet in the server?

1013


What are the drawbacks of cgi?

1042


What is the main purpose of java servlets?

1063


Write the code to get the server information in servlet.

1068


Write a program to show the functionality of doget and dopost method?

1221


How can the referrer and the target urls be used in servlet?

1011