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 are the phases of the servlet life cycle?
What is the <load-on-startup> element?
Difference between forward() method and sendredirect() method ?
If you want to modify the servlet,will the Webserver need to be ShutDown ?
What method is used to create database connection in servlets?
Is it possible to have a constructor inside the servlet?
Write all the phases defined in servlet life cycle?
How can we include static files in the jsp page?
What's the servlet interface?
What are the different methods involved in generic servlet?
Why is httpservlet declared abstract?
Is java servlet still used?