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
When servlet is loaded?
What is Servlet API used for connecting database?
What are all the protocols supported by httpservlet?
How can we include static files in the jsp page?
Why servlet is used as controller ? Not JSP? I want complete explation?
what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?
What are the functions of an intercepting filter?
How can we implement a jsp page?
Differentiate between the get and post method
What are the servlet events?
What is http servlet?
What is the difference between CGI and Servlet?
What is the difference between encodeRedirectUrl and encodeURL?
What is the process to implement doget and dopost methods?
What are the types of servlets? Explain