Can I override destroy() method of Servlets?

Answers were Sorted based on User's Feedback



Can I override destroy() method of Servlets?..

Answer / vinod

yes we can do it

Is This Answer Correct ?    13 Yes 1 No

Can I override destroy() method of Servlets?..

Answer / kalyan

yes we can override destroy() method according application
requirement....

Is This Answer Correct ?    7 Yes 0 No

Can I override destroy() method of Servlets?..

Answer / 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

Can I override destroy() method of Servlets?..

Answer / komal singh adhikari

YES,
we can call and override destroy().

Is This Answer Correct ?    4 Yes 1 No

Post New Answer

More Servlets Interview Questions

How multiple simultaneous requests can be handled by servlets?

2 Answers  


How will you pass values from HTML page to the servlet?

0 Answers  


What is the difference between portlet and servlet?

0 Answers  


What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?

0 Answers  


What is the workflow of a servlet?

0 Answers  






What are common tasks performed by Servlet Container?

0 Answers  


Explain the differences between jsp and servlet.

0 Answers  


How do cookies work in servlets?

0 Answers  


why are using HttpServlet in realtime projects and why are not using Genericservlet

2 Answers  


What is the structure of the http response

0 Answers  


What is the web server used for running the Servlets?

0 Answers  


Explain request dispatcher and its methods.

0 Answers  


Categories