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

Explain url encoding in servlet?

581


Why servlet is faster than jsp?

566


What is difference between PrintWriter and ServletOutputStream?

771


If some new data has entered the database, explain how can a servlet refresh automatically?

739


What is getservletcontext?

552






Explain servlet.

571


Can we get PrintWriter and ServletOutputStream both in a servlet?

659


How do we call one servlet from another servlet?

592


What are the advantages of Servlet over CGI?

668


What is meant by Servlet? What are the parameters of service method?

599


What is servlet looping or chaining?

658


What are the types of servlet?

669


Is that servlet is pure java object or not?

644


What are advantages of servlets over cgi?

632


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

667