In which cases Destroy() is invoked?
Answers were Sorted based on User's Feedback
Answer / n.l.narayana
destroy() method is invoked automatically when ever the
servlet object is removed from the webcontainer
(Tomcat,weblogic,....)
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / 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 |
What do you mean by cgi in servlet?
How can we upload the file to the server using servlet?
What exception should be thrown when servlet is not properly initialized?
What is preinitialization of a servlet?
How will you pass values from HTML page to the servlet?
Name the webserver that is used to run Servlets?
How to work with Chinese login page (internationalization).if he enters user name and password in chinese, how is it converted to English and validate in db? And in reverse it should display welcome message in Chinese,if user is valid
What is a Session Id?
What is with the javax.servlet package naming?
What's the architecture of a servlet package?
What are session variable in servlets?
what are the disadvantages of cookies?