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

Answer Posted / ashwin kumar j

Yes you can call a destroy() method in init() method, but
remember destroy() method will behave like normal method
but not as life-cycle method.

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When servlet is loaded?

596


What is Servlet API used for connecting database?

622


What are all the protocols supported by httpservlet?

655


How can we include static files in the jsp page?

619


Why servlet is used as controller ? Not JSP? I want complete explation?

661






what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?

575


What are the functions of an intercepting filter?

496


How can we implement a jsp page?

636


Differentiate between the get and post method

569


What are the servlet events?

598


What is http servlet?

586


What is the difference between CGI and Servlet?

594


What is the difference between encodeRedirectUrl and encodeURL?

610


What is the process to implement doget and dopost methods?

550


What are the types of servlets? Explain

678