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
Explain jsessionid?
Explain the difference between jsp and servlet?
What is the need of session tracking in web application?
Difference between GET and POST?
How the servlet is loaded?
How do we call one servlet from another servlet?
When should you prefer to use doget() over dopost()?
What are the life cycle methods of the servlet?
What is cookie in servlet?
What is servlet initializer?
Which java application server is the best?
what do you understand by url rewriting?
What’s the difference between forward() and sendredirect() methods?
What do you mean by filter in servlet?
What are important features of Servlet 3?