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 do you mean by chaining in servlet?
What is servlet container. how it works?
What are the functions of the servlet container?
How can you run a servlet program?
If some new data has entered the database, explain how can a servlet refresh automatically?
What do you mean by filter in servlet?
Define declaration.
How httpservlet is different from the genericservlet?
What is a web application and what is it’s directory structure?
Tell the new features added in servletrequest interface i.e. Servlet 2.4
Differentiate between the get and post method
what do you understand by url rewriting?
What do you mean by web applications? Explain web application directory arrangement?
What is servlet and how it works?
Is that servlet is pure java object or not?