can i call destroy() method in init() method of servlet
Answer Posted / archana
yes, u can call destroy() method in init() of Servlet.
but calling destroy() in this way doesnt unload servlet
from servlet container.
| Is This Answer Correct ? | 8 Yes | 4 No |
Post New Answer View All Answers
What mechanisms are used by a Servlet Container to maintain session information?
How can an existing session be invalidated?
What are the benefits of using servlet over cgi?
What do you mean by interservlet communication?
What is cgi and what are its drawbacks?
How do you get the ip address of the client in servlet?
Tell us something about servletconfig interface.
Define the lifecycle for executing a jsp page.
Explain url encoding in servlet?
What are the life-cycle methods for a servlet?
What do you mean by chaining in servlet?
Explain the difference between servletconfig and servletcontext in servlet?
Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?
Why doesn’t a servlet include main()? How does it work?
What is the difference in between the httpservlet and generic servlet?