what is the advantage of using Servlets over CGI programming?
Answer Posted / janet
Servlets are only instantiated when the client first
accesses the program. All subsequent accesses are done to
that instance.This keeps the response time of servlets lower
than that of CGI programs, which must be run once per
hit.also because servlet is instantiated only once,all
accesses are put through that one object. This helps in
maintaining objects like internal connection,pooling or user
session tracking and lots of other features.
Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
What is generic servlet class?
What is servlet instance?
Can we refresh servlet in client and server side automatically?
Explain in brief the directory structure of a web application?
Which event is fired at the time of session creation and destroy?
Which protocol will be used by browser and servlet to communicate
What is the use of httpservletresponsewrapper?
What is the purpose of requestdispatcher interface?
What is a servlet engine?
How we can get ip address of client in servlet?
Which is the methods of generated servlet?
Why servlet is faster than jsp?
how many jsp scripting elements are there and what are those?
What is the use of request dispatcher interface?
What is the importance of init() method in Servlet ?