Can we call destroy() method inside the init() method? What
happens when we do so?
Answer Posted / poorna chandar rao.yerrabothu
if suppose we take the servlet programming side then
whenever u type the URL first web browser call the service
method then create the servlet object then call the
init()method whenever we call the init method start the
proceesses of the particular object operation suppose we
call the destroy()method before completion of the particular
object operation servelet object is removed then when we r
call the service method then create the servelet object
| Is This Answer Correct ? | 11 Yes | 10 No |
Post New Answer View All Answers
What is servlet and its life cycle?
What is pure servlet?
What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?
What do you mean by mime type?
Explain the jar and war files in servlet?
What are the uses of servlet
What do you mean by cgi?
When Servlet is unloaded?
What are the life cycle methods of the servlet?
Write the code to get the server information in servlet.
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
What is a generic servlet?
Explain is servlet mapping?
Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?
Given the request path below, which are context path, servlet path and path info?