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
Why is init() method is used in servlets?
Explain the servlet filter.
What’s the difference between forward() and sendredirect() methods?
Which http method is said to be non-idempotent and idempotent?
List some life cycle methods of a servlet.
Explain url encoding in servlet?
How to make sure a servlet is loaded at the application startup?
What is the need of session tracking in web application?
What is session?
What are the steps involved in placing a servlet within a package?
Is it possible to have a constructor inside the servlet?
Why do we use sendredirect() method?
What is servlet? Explain
Explain the difference between generic servlet and http servlet?
What are the different methods involved in the process of session management in servlets?