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

List out difference between a JavaBean from a Servlet?

564


why we should override only no-agrs init() method.

678


Explain jsessionid?

619


What is ServletConfig object?

606


What are the advantages of servlets over traditional cgi?

628






Why servlet is faster than jsp?

562


What’s the use of the servlet wrapper classes??

640


What is http servlet? Explain with the help of an example.

581


How are filters?

580


What are the differences between forward() method and sendredirect() methods?

547


What is meant by cookies?

612


What's the difference between authentication and authorization?

548


Is it possible to have a constructor inside the servlet?

554


How do I use cookies to store session state on the client?

534


Explain servlet events?

563