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

How can an existing session be invalidated?

1173


Describe the phases of servlet lifecycle?

1071


What is the difference between the include() and forward() methods?

1084


Hi frnd can i any one kindly can post for me portlet,hibernate and spring example application and with flow explantion configuration using Jdeveloper.and related links ar tutorials kindly please send me .its urgent for me .thanks in advance...........else can any one send to kondaiah.goddeti@gmail.com

2189


Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?

1039


Explain servlet.

1049


Difference between forward() method and sendredirect() method ?

1041


What are the functions of an intercepting filter?

951


Where do you define dispatcherservlet?

1052


How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255

3395


What is servlet mapping?

1027


Why is http protocol called as a stateless protocol?

1034


Why do you use session tracking in httpservlet?

1140


How can a servlet be used to generate plain text instead of html?

954


What are the objects involved when a servlet receives a call from client?

1036