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
How the typical servlet code look like ?
Which interface should be implemented by all servlets?
Why doesn’t a servlet include main()? How does it work?
how many jsp scripting elements are there and what are those?
What is cookies in servlet with example?
What is Client-Server Computing?
Why filter is used in servlet?
What is difference between cookies and httpsession?
request parameter how to find whether a parameter exists in the request object?
Explain url encoding in servlet?
What is the difference between jsp and servlet life cycle?
What is servlet interface?
What is the difference in between the httpservlet and generic servlet?
what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?
Difference between get and post in java servlets?