Can we call destroy() method inside the init() method? What
happens when we do so?
Answer Posted / srilatha
In the servlet life cycle First our request calls to the
init()method,Inside it will doing some operations related
to the objects after that it will cal the destory() method
The destory()removes the servlet object,before calling to
service() method.
| Is This Answer Correct ? | 2 Yes | 12 No |
Post New Answer View All Answers
What are the kinds of http requests?
why we should override only no-agrs init() method.
What is the use of send redirect () method?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
Name the different ways of session tracking.
Should I override the service() method?
List out difference between a JavaBean from a Servlet?
Why jsp is better than servlet?
Write a hello world program using servlets.
What is war file?
What is called Scriptlet?
What is the difference between jsp and servlet life cycle?
Explain the difference between jsp and servlet?
Explain the difference between generic servlet and http servlet?
how many jsp scripting elements are there and what are those?