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 are some disadvantages of storing session state in cookies?
What is cookie in servlet?
What are the phases of servlet life cycle?
What is Servlets and explain the advantages of Servlet life cycle?
What is the use of attribute in servlets?
What if we pass negative value in load-on-startup?
What is cgi?
Which exception is thrown if the servlet is not initialized properly?
What is the directory structure of web application?
How to get the path of servlet in the server?
What are the drawbacks of cgi?
What is the main purpose of java servlets?
Write the code to get the server information in servlet.
Write a program to show the functionality of doget and dopost method?
How can the referrer and the target urls be used in servlet?