Can I override destroy() method of Servlets?
Answer Posted / mohd adnan
yes off course we can override the destroy(), method. There is confusion between us, as many of us thinks destroy method call destroy the servlet, however this interpretation is wrong. calling destroy method is only call to the last method before servlet dies. it never destroy servlet.
--------- By Mohd Adnan MCA IMS Ghaziabad
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What are the different mode that servlets can be used?
Explain the lifecycle of a servlet?
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
What do you mean by cgi and what are its drawbacks?
What is a servlet context object?
why we should override only no-agrs init() method.
What is the servlet?
Which event is fired at the time of project deployment and undeployment?
How the typical servlet code look like ?
What is the servletconfig object?
What is servlet and its life cycle?
What are the two important api's in for servlets?
When jsessionid is created?
What is the GenericServlet class?
What is meant by servlet? What are the parameters of the service method?