Can we call destroy() method inside the init() method? What
happens when we do so?
Answer Posted / sunny
Yes you can call init method in destroy.
public void destroy(){
try {
init();
}
catch(Exception e){
}
}
| Is This Answer Correct ? | 11 Yes | 25 No |
Post New Answer View All Answers
What do you mean by web applications? Explain web application directory arrangement?
What is the use of servletconfig interface?
How the servlet is loaded?
What is the use of welcome-file-list?
What are the different methods involved in generic servlet?
Which are the different ways you can communicate between servlets?
What are the phases of a servlet life cycle?
What is the type of method for sending request from http server?
Which java framework is most popular?
What is the difference between a generic servlet and http servlet?
Explain url encoding in servlet?
How do you get the ip address of the client in servlet?
What are the life-cycle methods for a servlet?
How can I send user authentication information while making URL Connection?
What are the new features added to servlet 2.5?