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
Why is a constructor needed in a servlet even if we use the init method?
Difference between httpservlet and generic servlets?
Explain servlet.
What do you mean by chaining in servlet?
What is the effective way to make sure all the servlets are accessible only when user has a valid session?
What is cookies in servlet with example?
What are the types of servlet?
Define the lifecycle for executing a jsp page.
What is servlet in tomcat?
What exactly is a servlet?
What is lazy loading and what is Generic Servlet Class?
What is servlet configuration?
Which method is called when reference variable is passed in system.net?
What are the uses of servlets?
Why is servlet used?