Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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

What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?

250


How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255

2519


What is api in servlet?

176


List some life cycle methods of a servlet.

215


What is the difference between the include() and forward() methods?

210






What if we pass negative value in load-on-startup?

253


Tell us something about servletconfig interface.

211


What is servlet invoker?

231


Can you send an authentication error from a servlet?

183


Tell the new features added in servletrequest interface i.e. Servlet 2.4

221


What is preinitialization of a servlet?

229


What is the major difference between context parameter and context attribute?

198


What is the use of httpservletrequestwrapper?

209


How to upload a file to the server using servlet?

205


How to find whether a parameter exists in the request object?

237