can i call destroy() method in init() method of servlet
Answer Posted / tanuj
yes,
but genricServlet init() method initialization is different
from overriding it by you (we should not orride it).
destroy() method is used for closing many connections as
itit() method is used for starting some database and other
things.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Explain how to improve Servlet Performance?
What is ServletConfig object?
Difference between get and post in java servlets?
Write a simple servlet program to print the contents of html.
What is the difference between get and post methods?
What is the difference between encodeRedirectUrl and encodeURL?
How forward () method is different from send redirect () method?
What are the new features added to servlet 2.5?
What is the process for chaining servlet?
How do you find out what client machine is making a request to your servlet
What are the different methods involved in the process of session management in servlets?
What is called servlet container?
How can we perform any action at the time of deploying the project?
Which event is fired at the time of session creation and destroy?
How can we invoke another servlet in a different application?