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 do I support both get and post from the same servlet?
Why do we have servlet filters?
What's the architecture of a servlet package?
What is java servlet?
How to get the server information in a servlet?
What is difference between cookies and httpsession?
What are different ways for authentication of servlet?
What are the disadvantages of storing session state in cookies?
What is life cycle of Servlet?
How to upload a file to the server using servlet?
Describe some assignments that are executed by servlet container?
Can you refresh servlet in client and server-side automatically?
What is cookie? Why is cookie used?
What is servlet attributes and their scope?
What is the need of session tracking in web application?