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
Explain servlet events?
What is the use of servlet wrapper classes?
Why do we have servlet wrapper classes?
What is the difference between forward () and sendredirect () functions in servlet? Explain
What is the functionality of actionservlet and requestprocessor?
What do you mean by scope object and what are its types?
Explain in brief the directory structure of a web application?
What is servlet container?
Where do you define dispatcherservlet?
Explain get and post.
Describe the phases of servlet lifecycle?
What is the effective way to make sure all the servlets are accessible only when user has a valid session?
Difference between doget and dopost?
What do you mean by servlet context?
How do you create a cookie using servlet?