Answer Posted / shakir khan
When server wants to remove the servlet from pool,it will
execute the destroy().
destroy() is invoked,when servlet is unloaded from
memory.This is a good place to clean up any resources(Such
as open files or database connections).
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can we refresh servlet in client and server side automatically?
What is the use of servlet wrapper classes?
What is a servlet context object?
Is servlet a server side scripting language?
What is difference between get and post method?
Write a program to show the functionality of doget and dopost method?
What is a servlet?
What is the life-cycle of servlets?
How to make sure a servlet is loaded at the application startup?
What is servletconfig?
How do we go with database connection and log4j integration in servlet?
If a servlet is not properly initialized, what exception may be thrown?
What are the different ways we can maintain state between requests?
Explain servlet events?
How do you deal property files in servlet?