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 are the various ways of session supervision in servlets?
Where do you define dispatcherservlet?
What are the steps involved in placing a servlet within a package?
What are the steps that are involved in using the httpservlet class?
Explain the difference between jsp and servlet?
How printwriter is different from servletoutputstream?
How do you get the ip address of the client in servlet?
What are the different methods involved in generic servlet?
Is dispatcher servlet a singleton?
Explain Action Servlet?
What is called servlet container?
What is the procedure of invoking different servlet in a different application?
What's the difference between authentication and authorization?
Write a simple servlet program to print the contents of html.
What are the uses of servlet