can i call destroy() method in init() method of servlet

Answer Posted / shekhar

no,we can't call destroy() in init() method.because of
init() and dstroy() methods are take care by web container

Is This Answer Correct ?    7 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get the path of servlet in the server?

540


Does servlet have main method?

689


When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?

576


How can you create a session in servlet?

596


Why is Servlet so popular?

614






Explain the difference between jsp and servlet?

592


What is servlet in web technology?

577


What is cgi and what are its drawbacks?

553


What are the mechanisms used by a servlet container for maintaining session information?

566


If servlet receives multiple requests, how many objects will it create?

829


Explain the difference between generic servlet and http servlet?

541


What is the difference between Difference between doGet() and doPost()?

756


How can we create deadlock situation in servlet?

850


How to generate the server side programming and the advantages of it over the other languages?

562


When servlet is loaded?

594