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

What is servlet interface?

0 Answers  


How do we go with database connection and log4j integration in servlet?

0 Answers  


How do cookies work in servlets?

0 Answers  


What is the use of Servlets?

7 Answers   Infosys,


How ThreadSafe page attribute will be working in Servlet as well as in JSP?Automatically ThresdSafe is true in JSP so service method will be destroy in each and every request or not?so how thresd will handle srevice method?

1 Answers   AZTEC,


How do you invoke a Servlet? What is the difference between doPost method and doGet method?

0 Answers  


What are the different types of servlets?

0 Answers  


What are the life cycle methods of the servlet?

0 Answers  


What is the capacity the doget can send to the server?

0 Answers  


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

2 Answers  


How to generate the server side programming and the advantages of it over the other languages?

0 Answers  


Why doesn’t a servlet include main()? How does it work?

0 Answers  


Categories