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...

what happens if we wont use destroy()?

Answer Posted / rv.nandakishore

Think, if there is 100's of objects are utilizing the
resource(i.e Connection object). That means allocation of
those objects are stored in the internal memory of the JVM
right... If similar requests are utilizing the Connection
object.... at one time the JVM utilization memory is full...
this will degrade the application. For this reason we call
explicitly destroy()...... if not the Garbage Collector will
taken care to reclaim the memory.... by we don's say when it
will be reclaim the memory and free the JVM memory......

Is This Answer Correct ?    20 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the common methods that are included in the http servlet class?

993


How can we refresh automatically when new data is entered into the database?

1046


What are the uses of servlet

1089


What is ServletConfig object?

1097


Describe some assignments that are executed by servlet container?

1030


If a servlet is not properly initialized, what exception may be thrown?

1114


What are Servlets?

1053


What is the need of servlet filters?

938


Explain the different ways for servlet authentication?

1030


What is war file?

1019


What is servlet name in web xml?

950


What is string tokenizer?

1029


Which are the different ways you can communicate between servlets?

941


What is servlet in simple terms?

970


Explain the difference between servletconfig and servletcontext in servlet?

988