can i call init() method in destroy() method of servlset. ?
Answer Posted / gayathri janarthanam
One can programatically call destroy() from init(), though it is not recommended. it will be invoked like a regular java method call..Whatever code is written in the destroy method will run....It will not destroy the servlet...Only the servlet container can call the destroy() method to actually destroy a servlet....
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How printwriter is different from servletoutputstream?
Write a servlet to upload file on server.
What is the need of servlet filters?
What are the annotations used in servlet 3?
What is servletconfig?
how the HTML data stored in web server?
What is meant by Servlet? What are the parameters of service method?
Define the servlet mapping.
Why filter is used in servlet?
Why is a constructor needed in a servlet even if we use the init method?
What is the difference between the http servlet and generic servlet?
what is multiple server?
What is the life-cycle of servlets?
What is the need of session tracking in web application?
What are session variable in servlets?