Originally posted by padmapriyagururajan priya:
Hi Naresh,
Do you mean to say that the destroy() method releases the resources and not the developer. Am I right?
destroy() method releases means the "code written by the developer inside the destroy() method" is executed thereby it seems like the destroy method releases the resources.
As Ulf said, its given a chance to the servlet if required it can have an overridden destroy() method to have its own piece of code which can take care of releasing the resources.
So, its purely upto the programmer/developer of the Servlet who is overriding the destroy() method.
Does that clear your doubt?