can i call init() method in destroy() method of servlset. ?
Answer Posted / gayathri janarthanam
One can programatically call destroy() from init(), though it is not recommended. it will be invoked like a regular java method call..Whatever code is written in the destroy method will run....It will not destroy the servlet...Only the servlet container can call the destroy() method to actually destroy a servlet....
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is the life-cycle of servlets?
What is load-on-startup in servlet?
What is the procedure of invoking different servlet in a different application?
What is servlet container?
Can we override destroy method in servlet?
What is Request Dispatcher?
Define the lifecycle for executing a jsp page.
What are Servlets?
What are the life cycle methods of a servlet?
What are all the protocols supported by httpservlet?
Explain the concept of ssi ?
Explain the working of service() method of a servlet.
List some life cycle methods of a servlet.
What do you mean by cgi in servlet?
What is httpservlet class?