can i call destroy() method in init() method of servlet
Answer Posted / yathirajulu
yes, we call destroy() in init(),because both are called once.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Explain the different ways for servlet authentication?
What are the types of servlets? Explain
What are the steps that are required to handle the multi-threading?
What is the use of httpservletresponsewrapper?
Why filter is used in servlet?
Which are the different ways you can communicate between servlets?
Explain in brief the directory structure of a web application?
What is dispatcher servlet?
What is the major difference between servlet and applet?
Explain the difference between jsp and servlet?
What is a web application and what is it’s directory structure?
List out difference between a JavaBean from a Servlet?
What exception should be thrown when servlet is not properly initialized?
What is the difference between sendredirect() and forward() in a servlet?
Explain the lifecycle of a servlet?