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
How can we include static files in the jsp page?
How do I use cookies to store session state on the client?
What are the uses of servlet and what is servlet chaining?
What is servlet in tomcat?
What is servlet and its use?
Who is responsible for writing a constructor?
What is meant by session? Tell me something about httpsession class?
Is servlet a server side scripting language?
What is generic servlet class?
When servlet object is created?
What is http servlet in java?
Which httpsession object is used to view and manipulate information about a session?
Why the concept of single thread model interface is used?
How do you invoke a servelt?
What is difference between PrintWriter and ServletOutputStream?