Can we call destroy() method inside the init() method? What
happens when we do so?
Answer Posted / ashwin kumar j
Yes you can call a destroy() method in init() method, but
remember destroy() method will behave like normal method
but not as life-cycle method.
| Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
How do you communicate in between Applets and Servlets?
Which exception is thrown if the servlet is not initialized properly?
What's the architecture of a servlet package?
Tell the new features added in servletrequest interface i.e. Servlet 2.4
What is the use of servlet wrapper classes?
What is difference between server and servlet?
What are the disadvantages of storing session state in cookies?
What is the use of request dispatcher interface?
What is the importance of init() method in Servlet ?
What is servlet container. how it works?
What is meant by session? Tell me something about httpsession class?
What are the different mode that servlets can be used?
What is Servlets and explain the advantages of Servlet life cycle?
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
How is an application exception handling is done using a servlet?