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 do we share data using 'getservletcontext ()?
Explain their methods? Tell me their parameter names also have you used threads in servlet?
What do you mean by request dispatcher in servlet?
What is the structure of the http response
What is httpservlet and how it is different from genericservlet?
What is called Session Tracking?
What are the key methods that are involved in processing of http servlets?
How does tomcat servlet container work?
What methodology can be followed to store more number of objects in a remote server?
If some new data has entered the database, explain how can a servlet refresh automatically?
What are different ways for servlet authentication?
What are the difference between session and cookies in servlet? Explain
Why jsp is better than servlet?
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()?
How do you find out what client machine is making a request to your servlet