Explain life cycle of a Servlet?
Answers were Sorted based on User's Feedback
Answer / janet
1. a server loads and initializes the servlet by init()
method.
2.the servlet handles zero or more client's requests
through service() method .
3. the server removes the servlet through destroy() method.
| Is This Answer Correct ? | 9 Yes | 1 No |
Answer / venky
the object of servlet is created in the init mehod by server
request of the client is processed in service method
the servlet is discarded from thr server by destroy method
| Is This Answer Correct ? | 1 Yes | 0 No |
What is httpservlet class?
How can you create a session in servlet?
why are using HttpServlet in realtime projects and why are not using Genericservlet
How can the session in servlet be destroyed?
What is the use of httpservletrequestwrapper?
How do you communicate in between Applets and Servlets?
What is servlet and its types?
What is the directory structure of web application?
what are the way a client can be tracked?
explain filters in java?
Why do we have servlet wrapper classes?
How threads are implemented in servlets?