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 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Given the request path below, which are context path, servlet path and path info?

989


Is java servlet still used?

994


Describe servlet?

982


Which interface should be implemented by all servlets?

1165


What do you mean by default initialization in java servlet?

1055


What are the differences between the servletconfig interface and the servletcontext interface?

1111


What is the capacity the doget can send to the server?

1017


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

938


How do you load an image in a Servlet?

1121


Write a program to show the functionality of doget and dopost method?

1144


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

982


Is that servlet is pure java object or not?

1032


Explain the custom jsp tags and the beans.

1009


Explain url encoding?

941


Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?

1205