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 / ravikiran

a call to the destroy method will happen and the resources
will be released and the flow will continue as it is and
will throw an exception if the released resource is used
indie the service method call.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is init() method is used in servlets?

958


Explain the servlet filter.

929


What’s the difference between forward() and sendredirect() methods?

957


Which http method is said to be non-idempotent and idempotent?

1000


List some life cycle methods of a servlet.

1009


Explain url encoding in servlet?

996


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

988


What is the need of session tracking in web application?

976


What is session?

997


What are the steps involved in placing a servlet within a package?

1030


Is it possible to have a constructor inside the servlet?

953


Why do we use sendredirect() method?

929


What is servlet? Explain

1010


Explain the difference between generic servlet and http servlet?

941


What are the different methods involved in the process of session management in servlets?

1205