What is Single Threaded Model in Servlets? Explain this
with an example?
Answer Posted / rajkumar
In Single Thread model multiple instances of Servlet class
is Created for every request and in MultiThread model thread
instance is created for every request.
Single thread model is used in case code safety.Performance
fo server is degraded when we use single thread as it
creates Servlet instance for every request where server
gives fast response in multi thread model.
|Is This Answer Correct ?||5 Yes||5 No|
What is the life-cycle of servlets?
How can we achieve transport layer security for our web application?
What are advantages of servlets over cgi?
What’s the difference between forward() and sendredirect() methods?
Write a simple servlet program to print the contents of html.
What is the
Explain web application directory arrangement?
How do cookies work in servlets?
Explain url encoding in servlet?
Which exception is thrown if the servlet is not initialized properly?
What's the use of servletcontext?
Define the lifecycle for executing a jsp page.
How are filters?
How can the session in servlet can be destroyed?
What is meant by session? Tell me something about httpsession class?