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
Given the request path below, which are context path, servlet path and path info?
Is java servlet still used?
Describe servlet?
Which interface should be implemented by all servlets?
What do you mean by default initialization in java servlet?
What are the differences between the servletconfig interface and the servletcontext interface?
What is the capacity the doget can send to the server?
What is the difference between a generic servlet and http servlet?
How do you load an image in a Servlet?
Write a program to show the functionality of doget and dopost method?
Difference between forward() method and sendredirect() method ?
Is that servlet is pure java object or not?
Explain the custom jsp tags and the beans.
Explain url encoding?
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?