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
How do we translate jsp?
How to get the server information in a servlet?
Which exception is thrown if the servlet is not initialized properly?
What are the uses of servlet and what is servlet chaining?
Is servlet a framework?
What is Request Dispatcher?
What is the difference between context parameter and context attribute?
What is the difference between Server and Container?
Explain Action Servlet?
What are the disadvantages of storing session state in cookies?
Whats the advantages using servlets over using CGI?
How does java thread pool work?
What if we pass negative value in load-on-startup?
Explain the working of service() method of a servlet.
Explain the methods of request dispatcher in servlet?