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
Can we get PrintWriter and ServletOutputStream both in a servlet?
What is the web server used for running the Servlets?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
What are some advantages of storing session state in cookies?
How can a servlet be used to generate plain text instead of html?
Which protocol will be used by browser and servlet to communicate
How are filters?
Explain the steps involved in placing a servlet within a package?
What is the use of servlet context?
Which is the methods of generated servlet?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
What is cookies in servlet with example?
What is servlet invoker?
What is dispatcher servlet?
What is servlet in tomcat?