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


Please Help Members By Posting Answers For Below Questions

Difference between httpservlet and generic servlets?

610


What are the kinds of http requests?

615


Can you refresh servlet in client and server-side automatically?

626


Explain jsessionid?

626


Explain get and post.

653






What is ServletContext object?

655


What is http servlet in java?

572


What do you mean by web applications?

641


What is servlet and its advantages?

534


How are filters?

595


How can you create a session in servlet?

604


What are the annotations used in servlet 3?

584


What is the difference between portlet and servlet?

521


How do servlets work?

548


Define the servlet mapping.

554