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
What is a servlet?
Explain the features are in servlet 3?
What is a cookie What is the difference between session and cookie
What do you understand by mime type?
What is the directory structure of a war file?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
Define context initialization parameters.
What are the advantages of cookies?
What are the annotations used in servlet 3?
Which event is fired at the time of session creation and destroy?
Tell us something about servletcontext interface.
What is the procedure for initializing a servlet?
How many objects of a servlet is created?
Is it possible to have a constructor inside the servlet?
What is URL Encoding?