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
Difference between httpservlet and generic servlets?
What is load-on-startup in servlet?
What is the use of servlet context?
How printwriter is different from servletoutputstream?
Which are the different ways you can communicate between servlets?
What is servlet used for?
Which HTTP method is non-idempotent?
What are the types of protocols supported by httpservlet ?
Explain the difference between generic servlet and http servlet?
Why is httpservlet declared abstract?
What are session variable in servlets?
What is cgi?
What is the use of attribute in servlets?
Define the life cycle of a servlets.
What is a web container and what is its responsibility?