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


Please Help Members By Posting Answers For Below Questions

Why servlet is used as controller ? Not JSP? I want complete explation?

669


Explain the role of dispatcherservlet and contextloaderlistener.

616


Explain web container.

582


What is url encoding and url decoding

599


Where do you define dispatcherservlet?

559






How do I support both get and post from the same servlet?

708


What are the kinds of http requests?

617


In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify

597


How do you run a servlet?

552


What is MIME Type?

669


What is string tokenizer?

637


Can filter be used as request or response?

552


Explain the differences between jsp and servlet.

548


What is the servletconfig object?

542


What are the functions of Servlet container?

621