Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

destroy method

 
Sekhar Kadiyala
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the execution of destroy() method is mandate for every servlet when the servlet is being unloaded?
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
YES, the container will defintely call the destroy method when the Servlet is not in use by the container.

Nick
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic