Can we call destroy() method inside the init() method? What
happens when we do so?
Answer Posted / srilatha
In the servlet life cycle First our request calls to the
init()method,Inside it will doing some operations related
to the objects after that it will cal the destory() method
The destory()removes the servlet object,before calling to
service() method.
Is This Answer Correct ? | 2 Yes | 12 No |
Post New Answer View All Answers
What is a generic servlet?
Which is better jsp or servlet?
What is meant by a web application
How to find whether a parameter exists in the request object?
When Servlet is unloaded?
What do you mean by cgi and what are its drawbacks?
what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?
What is the requirement of servlet config and servlet context implemented and how are they implemented?
What is the use of servlet context?
What are the life cycle methods of a servlet?
What is load-on-startup in servlet?
Whats the advantages using servlets over using CGI?
How forward () method is different from send redirect () method?
How can the session in servlet can be destroyed?
What do you mean by servlet?