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 meant by a servlet?
What are the types of servlet?
Which exception is thrown if the servlet is not initialized properly?
What is the difference between Server and Container?
What is the effective way to make sure all the servlets are accessible only when user has a valid session?
Difference between httpservlet and generic servlets?
What are the different types of servlets?
what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?
Why the container loads server at the application startup and how?
Why is httpservlet declared abstract?
What is http servlet?
What is difference between server and servlet?
What do you mean by deployment descriptor?
Define the servlet mapping.
Write a program to show the functionality of servlets.