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

Answer Posted / shekhar

no,we can't call destroy() in init() method.because of
init() and dstroy() methods are take care by web container

Is This Answer Correct ?    7 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we refresh servlet in client and server side automatically?

591


What is servlet instance?

540


Explain get and post.

649


Why do you use session tracking in httpservlet?

639


Explain web container.

566






What is cgi?

594


Why HttpServlet class is declared abstract?

646


What are the mechanisms used by a servlet container for maintaining session information?

562


Explain url encoding?

519


Explain the custom jsp tags and the beans.

615


How to get the path of servlet in the server?

534


Explain the servlet context.

598


What is called a session?

621


Differentiate between get and post?

684


What is httpservlet class?

540