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 | 0 No |
Post New Answer View All Answers
What is the servletconfig object?
How will two or three servlets interact or communicate with each other?
How can the session in servlet can be destroyed?
How to generate the server side programming and the advantages of it over the other languages?
Why don't we write a constructor in a servlet?
What are the life-cycle methods for a servlet?
What are the uses of servlet
Which method of the httpservletrequest object is used?
How we can call a jsp from the servlet?
Which event is fired at the time of session creation and destroy?
What do you mean by scope object and what are its types?
What is called a session?
What are the difference between RMI and Servlets?
Explain the working of service() method of a servlet.
What are the differences between the servletconfig interface and the servletcontext interface?