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 is a servlet?

608


Explain the features are in servlet 3?

599


What is a cookie What is the difference between session and cookie

590


What do you understand by mime type?

558


What is the directory structure of a war file?

706






What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?

562


Define context initialization parameters.

572


What are the advantages of cookies?

628


What are the annotations used in servlet 3?

574


Which event is fired at the time of session creation and destroy?

868


Tell us something about servletcontext interface.

625


What is the procedure for initializing a servlet?

543


How many objects of a servlet is created?

788


Is it possible to have a constructor inside the servlet?

550


What is URL Encoding?

617