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 do you mean by request dispatcher in servlet?
How do you design microservices?
Explain request dispatcher and its methods.
What are the uses of servlet and what is servlet chaining?
Which application server is best for java?
How to handle exceptions thrown by application with another servlet?
How to notify an object in session when session is invalidated or timed-out?
What is difference between jsp and servlet?
Which are the different ways you can communicate between servlets?
Explain the role of dispatcherservlet and contextloaderlistener.
What do you mean by httpservlet?
What is new in ServletRequest interface ? (Servlet 2.4)
What is the life cycle of a servlet?
Is servlet synchronized?
What are the differences between forward() method and sendredirect() methods?