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 |
request parameter how to find whether a parameter exists in the request object?
Why the container loads server at the application startup and how?
What is Servlets and explain the advantages of Servlet life cycle?
What are the annotations used in servlet 3?
How can we refresh automatically when new data has entered the database?
Difference between web container & web server........... Difference between web server & application server?????????
What are the different ways we can maintain state between requests?
What is the functionality of actionservlet and requestprocessor?
Why HttpServlet class is declared abstract?
How can an existing session be invalidated?
What are different methods of session management in servlets?
Explain the jar and war files in servlet?