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


Please Help Members By Posting Answers For Below Questions

How to get the path of servlet in the server?

530


What is httpservlet class?

538


Why do we have servlet wrapper classes?

568


What is the difference between 2 types of servlets?

634


What must be implemented by all servlets?

566






How is an application exception handling is done using a servlet?

533


What is the difference between the http servlet and generic servlet?

594


How httpservlet is different from the genericservlet?

558


What are the types of an http request?

573


What are the common methods that are included in the http servlet class?

572


How we can create war file in servlet?

653


What are the disadvantages of storing session state in cookies?

624


How to create war file?

605


How can you use a servlet to generate a plain text instead of html?

581


What are different ways for authentication of servlet?

521