Can threads be used in Servelet?
Answers were Sorted based on User's Feedback
Answer / prathap
Threads Cannot code manually by the programmer.The facility
itself given by the Servlet Container.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / abc
Yes. You can use Threading in Servlet by implementing
SingleThreadModel interface.
| Is This Answer Correct ? | 0 Yes | 1 No |
What are the exceptions thrown by servlets? Why?
What is the difference between RequestDispatcher and sendRedirect?-
How does Cookies work in Servlets?
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
What are the life cycle methods of a servlet?
What is meant by servlet? What are the parameters of the service method?
Name the servers that can be used to develope and deploy Servlets?
What is servlet and its types?
How can an existing session be invalidated?
Which are the different ways you can communicate between servlets?
What is the difference between callling a RequestDispatcher using ServletRequest and ServletContext?
How an Image can be loaded in a Servlet ?