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 / niranjanravi

Single Thread Model ensures that servlet handles only one
request at a time.When YOUR CLASS IMPLEMENTS THIS INTERFACE
WE ARE GUARENTEED THAT no two threads run simultaneously in
service() method.
this is a marker interface which contains no methods on its
own.

Is This Answer Correct ?    53 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different methods of session management in servlets?

196


How to make sure a servlet is loaded at the application startup?

227


How to commuincate between an applet and a servlet?

231


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

210


Can you send an authentication error from a servlet?

183






What is the purpose of dispatcherservlet properties?

163


What do you mean by scope object and what are its types?

221


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

221


How do you create a cookie using servlet?

202


What is the difference between servlet and jsp?

198


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 ?

204


What is called Session Tracking?

250


What's the difference between authentication and authorization?

217


Which http method is said to be non-idempotent and idempotent?

219


Explain the custom jsp tags and the beans.

232