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
Write a hello world program using servlets.
Explain web container.
What is the difference between sendredirect() and forward() in a servlet?
What are the phases of servlet life cycle?
Write a command to get actual path of a servlet to the server?
What are the exceptions thrown by servlets? Why?
Explain how to improve Servlet Performance?
Can you call a jsp from the servlet?
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
Why servlet is faster than jsp?
Explain the difference between generic servlet and http servlet?
What are the new features added to servlet 2.5?
What are the drawbacks of cgi?
What is servlet collaboration?
How a servlet is unloaded?