what happens if we wont use destroy()?

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


Please Help Members By Posting Answers For Below Questions

What is servlet container. how it works?

617


What are different methods of session management in servlets?

780


Explain jsessionid?

622


Explain in brief the directory structure of a web application?

572


What is the element?

590






What is cookie? Why is cookie used?

584


What is session?

643


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

2088


How do you deal property files in servlet?

606


Explain web application directory arrangement?

593


Can you send an authentication error from a servlet?

527


What is the process to implement doget and dopost methods?

548


What do you mean by interservlet communication?

590


Explain the difference between servletconfig and servletcontext in servlet?

577


How do you invoke a Servlet? What is the difference between doPost method and doGet method?

647