Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is meant by a servlet?

1086


What are the types of servlet?

1280


Which exception is thrown if the servlet is not initialized properly?

1008


What is the difference between Server and Container?

1233


What is the effective way to make sure all the servlets are accessible only when user has a valid session?

1041


Difference between httpservlet and generic servlets?

1090


What are the different types of servlets?

997


what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?

1034


Why the container loads server at the application startup and how?

1042


Why is httpservlet declared abstract?

1104


What is http servlet?

1047


What is difference between server and servlet?

1077


What do you mean by deployment descriptor?

1025


Define the servlet mapping.

1035


Write a program to show the functionality of servlets.

994