Can we call destroy() method inside the init() method? What
happens when we do so?
Answer Posted / srilatha
In the servlet life cycle First our request calls to the
init()method,Inside it will doing some operations related
to the objects after that it will cal the destory() method
The destory()removes the servlet object,before calling to
service() method.
| Is This Answer Correct ? | 2 Yes | 12 No |
Post New Answer View All Answers
What is servlet and list its types?
How can the session in servlet be destroyed?
What are the phases of a servlet life cycle?
What is api in servlet?
What are the two important api's in for servlets?
What is the need of session tracking in web application?
Difference between get and post in java servlets?
What is called servlet mapping?
Define the servlet mapping.
What is the workflow of a servlet?
What is the importance of init() method in Servlet ?
What is servlet collaboration?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?
What are the common methods that are included in the http servlet class?
What is servlet and how it works?