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
What is the difference in between the httpservlet and generic servlet?
What are the different ways we can maintain state between requests?
Explain the war file?
Explain servlet.
What is servlet in simple terms?
Can you create a deadlock condition on a servlet?
What is http servlet in java?
What is new in ServletRequest interface ? (Servlet 2.4)
How is a servlet implemented in code?
How can we include static files in the jsp page?
What are the types of an http request?
Define the servlet mapping.
What is the major difference between context parameter and context attribute?
What is http servlet?
What are different methods of session management in servlets?