What is Single Threaded Model in Servlets? Explain this
with an example?
Answer Posted / sateesh.b
SingleThreadModel is a taged interface i.e. an interface
with out methods.
If any servlet is implimenting singlethreadmodel interface
that servlet is said be thread safe i.e. for each request
to that servlet one new object will be created in the server
Is This Answer Correct ? | 13 Yes | 5 No |
Post New Answer View All Answers
What is the type of method for sending request from http server?
Why is httpservlet declared abstract?
What is servlet container. how it works?
Define the life cycle of a servlets.
Why servlet is mostly used?
What is the difference in between the httpservlet and generic servlet?
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
What are the different mode that servlets can be used?
How is a servlet implemented in code?
What are the functions of an intercepting filter?
What is the major difference between context parameter and context attribute?
Name the different ways of session tracking.
Why is a constructor needed in a servlet even if we use the init method?
Are Servlets Thread Safe? How to achieve thread safety in servlets?
What is servlet configuration?