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
Explain is servlet mapping?
request parameter how to find whether a parameter exists in the request object?
What are the advantages of Servlet over CGI?
Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?
What is difference between PrintWriter and ServletOutputStream?
What's the servlet interface?
What is context in servlet?
Why do we have servlet filters?
Why doesn’t a servlet include main()?
What are the new features added to servlet 2.5?
When servlet object is created?
how many jsp scripting elements are there and what are those?
How can the session in servlet can be destroyed?
What is servlet container?
Why jsp is better than servlet?