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 do you mean by web applications? Explain web application directory arrangement?

1005


What is the use of servletconfig interface?

1085


How the servlet is loaded?

1122


What is the use of welcome-file-list?

1072


What are the different methods involved in generic servlet?

1150


Which are the different ways you can communicate between servlets?

1051


What are the phases of a servlet life cycle?

1161


What is the type of method for sending request from http server?

1174


Which java framework is most popular?

1213


What is the difference between a generic servlet and http servlet?

1042


Explain url encoding in servlet?

1100


How do you get the ip address of the client in servlet?

1061


What are the life-cycle methods for a servlet?

1047


How can I send user authentication information while making URL Connection?

1051


What are the new features added to servlet 2.5?

1153