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 lazy loading and what is Generic Servlet Class?
How native code can be used in a servlet?
How to get the server information in a servlet?
Explain the working of service() method of a servlet.
What is the difference between servlet and filter?
What is the difference between Difference between doGet() and doPost()?
Explain the servlet filter.
Difference between java beans & servlets?
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code
Which exception is thrown if the servlet is not initialized properly?
What are the difference between RMI and Servlets?
What is getservletcontext?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
Given the request path below, which are context path, servlet path and path info?
What are the uses of servlets?