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


Please Help Members By Posting Answers For Below Questions

what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?

571


What is string tokenizer?

630


What is servlet lazy loading?

695


What is the life cycle of a servlet?

791


What's the advantages using servlets than using cgi?

556






What is the difference between genericservlet and httpservlet

589


What is the dispatcher servlet?

516


When a client request is sent to the servlet container, how does the container choose which servlet to invoke?

574


What is the web server used for running the Servlets?

581


Difference between doget and dopost?

682


Why doesn’t a servlet include main()? How does it work?

633


What is the use of welcome-file-list?

574


What is new in ServletRequest interface ? (Servlet 2.4)

577


What methods do you use in servlet - applet communication?

584


What do you mean by url pattern in servlet?

631