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 are the functions of an intercepting filter?
What do you mean by default initialization in java servlet?
What are the different session tracking techniques?
List the Different types of servlet?
Explain web container.
When a servlet accepts a call from a client, it receives two objects. What are they?
What are the exceptions thrown by servlets? Why?
Which is the methods of generated servlet?
What are Servlets?
What is getservletcontext?
What is servlet configuration?
What is java servlet?
What are the uses of servlet and what is servlet chaining?
What are all the advantages of servlet over cgi?
Define servlet mapping?