Can we call destroy() method inside the init() method? What
happens when we do so?
Answer Posted / ravikiran
a call to the destroy method will happen and the resources
will be released and the flow will continue as it is and
will throw an exception if the released resource is used
indie the service method call.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What are the features added in Servlet 2.5?
What is the difference between context parameter and context attribute?
List out the difference between ServletConfig and ServletContext?
What are the benefits of using servlet over cgi?
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?
Why is a constructor needed in a servlet even if we use the init method?
When servlet object is created?
What is the default http method in the servlet?
How can we achieve transport layer security for our web application?
Explain jsessionid and when is it created?
What is the difference between a generic servlet and http servlet?
Explain is servlet mapping?
What is a web container and what is its responsibility?
Define servlet mapping?
What is servlet used for?