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
Is it good idea to create servlet constructor?
What are the life-cycle methods for a servlet?
What are the key methods that are involved in processing of http servlets?
Difference between java beans & servlets?
What exception should be thrown when servlet is not properly initialized?
How to get the IP address of client in servlet?
Which java framework is most popular?
Why do we need servlet filter?
How the JSP file will be executed on the Server side?
Explain url encoding?
What is servlet used for?
request parameter how to find whether a parameter exists in the request object?
What is the inter-servlet communication?
What is the difference between Difference between doGet() and doPost()?
How can the session in servlet can be destroyed?