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 / ashwin kumar j

Yes you can call a destroy() method in init() method, but
remember destroy() method will behave like normal method
but not as life-cycle method.

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to make sure a servlet is loaded at the application startup?

1026


Should I override the service() method?

1080


What is the requirement of servlet config and servlet context implemented and how are they implemented?

985


Define context initialization parameters.

1015


How to upload a file to the server using servlet?

986


How can the session in servlet be destroyed?

1139


What is life cycle of Servlet?

1057


What is servlet and its life cycle?

1106


Explain the servlet context.

1126


How to get the IP address of client in servlet?

1066


What is servlet interface?

1206


Can we refresh servlet in client and server side automatically?

1031


Explain servlet.

1029


What is difference between get and post method?

1061


What is a web application and what is it’s directory structure?

1066