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
How to get the path of servlet in the server?
Does servlet have main method?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
How can you create a session in servlet?
Why is Servlet so popular?
Explain the difference between jsp and servlet?
What is servlet in web technology?
What is cgi and what are its drawbacks?
What are the mechanisms used by a servlet container for maintaining session information?
If servlet receives multiple requests, how many objects will it create?
Explain the difference between generic servlet and http servlet?
What is the difference between Difference between doGet() and doPost()?
How can we create deadlock situation in servlet?
How to generate the server side programming and the advantages of it over the other languages?
When servlet is loaded?