Can we call destroy() method inside the init() method? What
happens when we do so?

Answer Posted / mani

In the Servlet programming context, the destroy() method
can never be called by your code and is called by the
servlet container

Is This Answer Correct ?    23 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which exception is thrown if the servlet is not initialized properly?

578


Is it possible to have a constructor inside the servlet?

543


Differentiate between the print writer and servlet output stream?

549


What is servlet? Explain

567


Why are http servlets used in programming?

537






What's the advantages using servlets than using cgi?

547


What is the difference between Servlets and Applets?

535


Explain the methods of request dispatcher in servlet?

505


What are the uses of servlet

623


What is called a session?

611


What are life cycle methods of a servlet?

579


What are the types of protocols supported by httpservlet ?

694


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

534


What is pure servlet?

691


What is api in servlet?

511