Answered Questions

  • Can we call destroy() method on servlets from service method?

    Surendra

    • Jun 27th, 2007

    Hi,Destroy method is a method where we can provide the actions (to free up the resources) to be performed while the servlet is getting unloaded. In general when a servlet is getting destroyed the ser...

    Shikha Dixit

    • May 17th, 2006

    Yes, we can call destroy() method from service() method but it will be treated as any other normal method rather lifecycle method. Also destroy() method called from service() method can do any deiniti...