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
Why are servlets used?
How to get the actual path of servlet in server?
Why the concept of single thread model interface is used?
Why HttpServlet class is declared abstract?
why we should override only no-agrs init() method.
How to handle exceptions thrown by application with another servlet?
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code
What is the difference between 2 types of servlets?
request parameter how to find whether a parameter exists in the request object?
What is the process to implement doget and dopost methods?
Is java servlet still used?
Which are the different ways you can communicate between servlets?
How do you run a servlet?
What is preinitialization of a servlet?
What is a servlet context object?