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 servlet in simple terms?

561


Explain url encoding?

519


How do we go with database connection and log4j integration in servlet?

697


how the HTML data stored in web server?

1952


How is a servlet implemented in code?

564






What is the need of session tracking in web application?

581


What is the life cycle of a servlet?

780


What are the important functions of filters?

594


What is the procedure for initializing a servlet?

543


What is the difference between 2 types of servlets?

642


What are the types of servlets? Explain

670


What is lazy loading and what is Generic Servlet Class?

604


How can the session in servlet be destroyed?

637


How to create war file?

609


What do you mean by httpservlet?

561