Answer Posted / qim2010
The destroy() method and other servlet lifecycle methods are called by the servlet container, so it would be a serious error if the servlet container did not call the destroy() method as it takes a servlet out of service. Normally your application code should not call servlet lifecycle methods. It is not advisable for your application code to call the destroy() method directly, it would be confusing and potentially destructive, so it is not a problem if your application does not call the method at all.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is servlet container. how it works?
What are different methods of session management in servlets?
Explain jsessionid?
Explain in brief the directory structure of a web application?
What is the
What is cookie? Why is cookie used?
What is session?
how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file
How do you deal property files in servlet?
Explain web application directory arrangement?
Can you send an authentication error from a servlet?
What is the process to implement doget and dopost methods?
What do you mean by interservlet communication?
Explain the difference between servletconfig and servletcontext in servlet?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?