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

1.HttpSession 2.Hidden fields 3.URL Rewriting these primitive type of Session maintainance. What is the other type of process that could help to maintain the Session? pls Explain the process if u know?

5 Answers   OnMobile,


Can we use the constructor, instead of init(), to initialize servlet?

0 Answers  


describe all about advanced java with presentation

4 Answers   Sun Microsystems,


What is Servlet Context?

5 Answers  


How can we upload the file to the server using servlet?

0 Answers  






Is there any differance b/w getting servlet context from servlet config and session? if yes then what is that?

7 Answers  


What are the steps involved in placing a servlet within a package?

0 Answers  


What is a servlet-to-servlet communcation?

0 Answers  


How can a servlet refresh automatically if some new data has entered the database?

3 Answers   Citi Bank, CitiGroup, IBM, Satyam,


What is the difference between callling a RequestDispatcher using ServletRequest and ServletContext?

2 Answers  


What are Servlets?

0 Answers  


why business logic written using servlets not in jsp. Jsp used for presentation purpose. serlvet used for coding business logic and controller logic. Reason for using servlets in business logic.

5 Answers  


Categories