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 the servlet?

1041


What is the functionality of actionservlet and requestprocessor?

1026


How does tomcat servlet container work?

1020


What are the key methods that are involved in processing of http servlets?

1050


What do you mean by session tracking?

1145


What is the importance of init() method in Servlet ?

1036


When a servlet accepts a call from a client, it receives two objects. What are they?

1189


What are the common methods that are included in the http servlet class?

994


What are the phases of a servlet life cycle?

1053


What is the major difference between context parameter and context attribute?

1044


What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?

1157


What is getservletcontext?

988


What is the difference between servlet and filter?

914


Write a command to get actual path of a servlet to the server?

969


What are the servlet events?

1009