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 must be implemented by all servlets?
What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?
Why are servlets used?
What are session variable in servlets?
What are the uses of servlet and what is servlet chaining?
How do you create a cookie using servlet?
Difference between get and post in java servlets?
What is the purpose of inter-servlet communication?
Explain the servlet filter.
How is the get () method different from the post() method?
What is servlet name in web xml?
How forward () method is different from send redirect () method?
Which protocol will be used by browser and servlet to communicate
What is the dispatcher servlet?
Elucidate servlet attributes and its scope?