Garbage Collection Java Interview Questions – Set 03
What is the importance of the destroy() method in Servlet The destroy() method is called only once at the end of the life cycle of a servlet. This method gives your servlet a chance to close database connections, halt background threads, write cookie lists or hit counts to disk, and perform other such cleanup activities. … Read more