In which cases Destroy() is invoked?
Answers were Sorted based on User's Feedback
Answer / n.l.narayana
destroy() method is invoked automatically when ever the
servlet object is removed from the webcontainer
(Tomcat,weblogic,....)
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / shakir khan
When server wants to remove the servlet from pool,it will
execute the destroy().
destroy() is invoked,when servlet is unloaded from
memory.This is a good place to clean up any resources(Such
as open files or database connections).
Is This Answer Correct ? | 1 Yes | 0 No |
Why jsp is better than servlet?
What is Difference between JavaBeans and taglib directives?
What exactly are the functions of servlet?
Why do you use session tracking in httpservlet?
What are sessions in servlets?
What is the use of RequestDispatcher in servlet?
18 Answers Accenture, CTS, TCS,
What happens, when client requests for server object, which is not yet loaded into the memory?
What is the difference between genericservlet and httpservlet
Explain the difference between servletconfig and servletcontext in servlet?
What are different Authentication options available in Servlets.
Explain the servlet filter.
Hi Friends, Can we make any method thread safe withour synchronized keyword?