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 is the servlet?
What is the functionality of actionservlet and requestprocessor?
How does tomcat servlet container work?
What are the key methods that are involved in processing of http servlets?
What do you mean by session tracking?
What is the importance of init() method in Servlet ?
When a servlet accepts a call from a client, it receives two objects. What are they?
What are the common methods that are included in the http servlet class?
What are the phases of a servlet life cycle?
What is the major difference between context parameter and context attribute?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
What is getservletcontext?
What is the difference between servlet and filter?
Write a command to get actual path of a servlet to the server?
What are the servlet events?