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

Answer Posted / yathirajulu

yes, we call destroy() in init(),because both are called once.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How we can call a jsp from the servlet?

529


What is cgi and what are its drawbacks?

549


What is servlet container?

663


Which protocol will be used by browser and servlet to communicate

578


What is http servlet?

577






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

579


Which HTTP method is non-idempotent?

616


Explain servlet life cycle?

613


What's the difference between servlets and applets?

557


Why session tracking is needed?

580


What is the inter-servlet communication?

696


Can you refresh servlet in client and server-side automatically?

614


What is servlet and list its types?

538


How forward () method is different from send redirect () method?

513


Explain the steps involved in placing a servlet within a package?

564