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

Differentiate between the print writer and servlet output stream?

554


What is called Scriptlet?

551


Which application server is best for java?

550


What is the difference between forward () and sendredirect () functions in servlet? Explain

538


Which is the methods of generated servlet?

671






Should I override the service() method?

662


What do you mean by annotations in servlet?

574


What is the difference between portlet and servlet?

506


What do you mean by cgi and what are its drawbacks?

520


What are the steps involved in placing a servlet within a package?

579


How is a servlet implemented in code?

557


What do you mean by httpservlet?

557


What are the features added in Servlet 2.5?

760


Why doesn’t a servlet include main()? How does it work?

624


What is the type of method for sending request from http server?

586