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 servlet collaboration?
Can a jsp be called using a servlet?
Why is httpservlet declared abstract?
Define the life cycle of a servlets.
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
What is http servlet in java?
What are Servlets?
What are the advantages of Servlet over CGI?
What is servlet and list its types?
What is the disadvantage of cookies?
Explain the difference between servlet and cgi?
What do you mean by servlet?
Explain the jar and war files in servlet?
What is servletconfig?
What is servlet used for?