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
request parameter how to find whether a parameter exists in the request object?
Does servlet have main method?
Is servlet synchronized?
What are some disadvantages of storing session state in cookies?
What is servlet and its life cycle?
What is servlet and its advantages?
Elucidate servlet attributes and its scope?
What is the difference between Difference between doGet() and doPost()?
What are the advantages of cookies?
What is the difference between the http servlet and generic servlet?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
What is java servlet session?
What is a web application and what is it’s directory structure?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
The code in a finally clause will never fail to execute, right?