Can we call destroy() method inside the init() method? What
happens when we do so?
Answer Posted / ashwin kumar j
Yes you can call a destroy() method in init() method, but
remember destroy() method will behave like normal method
but not as life-cycle method.
| Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
What is the
How do you configure a centralized error handler in servlets?
What is a deployment descriptor?
What is the capacity the doget can send to the server?
What is servlet used for?
What are the new features added to servlet 2.5?
Explain the custom jsp tags and the beans.
How we can get ip address of client in servlet?
Which are the different ways you can communicate between servlets?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
Explain request dispatcher and its methods.
Who is responsible for writing a constructor?
What do you mean by session tracking?
Why is httpservlet declared abstract?
Explain in brief the directory structure of a web application?