Hi Wiliam,
I know that Servlet's destroy() is called by the servlet container to indicate that the servlet is being taken out of service.This method gives the servlet an opportunity to clean up any resources that are being held (for example, memory, file handles, threads) and make sure that any persistent state is synchronized with the servlet's current state in memory.
But then with this method we have got Object's finalize() method in the Servlet class.and it does the same job of releasing non mem resources.
So now can u pls tell in this when exactly destroy & finalize will be called & in which sequence.
And can i have both the methods implemented in my class then what code i shld write it in that.
Waiting for reply.
Thanks
Aparna.