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
What is the difference between Server and Container?
what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?
How can you start a jta transaction from a servlet deployed on jboss?
Explain the lifecycle of a servlet?
How do you load an image in a Servlet?
What is difference between cookies and httpsession?
How do you define a servlet?
Why the container loads server at the application startup and how?
How does tomcat servlet container work?
If a servlet is not properly initialized, what exception may be thrown?
How can we refresh automatically when new data has entered the database?
What are the life cycle methods of the servlet?
What is the use of servlet wrapper classes?
What are the functions of an intercepting filter?
What is servlet and its use?