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
How printwriter is different from servletoutputstream?
How to rectify errors in java servlet while compilation?
What are the advantages of cookies?
How a servlet is unloaded?
If some new data has entered the database, explain how can a servlet refresh automatically?
When Servlet is unloaded?
What is session tracking?
What is meant by cookies?
What is the directory structure of web application?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
Why do we need servlet filter?
What do you mean by cgi and what are its drawbacks?
What is servlet mapping?
What is api in servlet?
how the HTML data stored in web server?