can i call destroy() method in init() method of servlet

Answer Posted / tanuj

Shekar babu is an disgrace to java community should never
blog answers,destroy() is just to inform what is to be done
when the service call is terminated it is like
on_service_destroy() what is to be done.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do we share data using 'getservletcontext ()?

542


Explain the difference between get and post method in servlet?

605


Explain web application directory arrangement?

589


What is the difference between sendredirect() and forward() in a servlet?

525


Why the container loads server at the application startup and how?

579






How to commuincate between an applet and a servlet?

589


Which are the different ways you can communicate between servlets?

524


How do we translate jsp?

576


Is that servlet is pure java object or not?

644


Differentiate between the print writer and servlet output stream?

562


What do you mean by cgi?

532


What mechanisms are used by a Servlet Container to maintain session information?

666


Should I override the service() method?

669


Why do we need a constructor in a servlet if we use the init method?

515


Define the lifecycle for executing a jsp page.

595