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

How do you define a servlet?

1043


What is java servlet session?

1031


What are the functions of an intercepting filter?

1014


How do we share data using 'getservletcontext ()?

1102


What do you mean by chaining in servlet?

1085


What is servlet in tomcat?

1106


How to get the IP address of client in servlet?

1137


How the servlet is loaded?

1136


What mechanisms are used by a Servlet Container to maintain session information?

1223


Explain the features are in servlet 3?

1114


Explain the servlet context.

1218


Explain how does JSP handle run-time exceptions?

1166


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

1172


Why the concept of single thread model interface is used?

1057


How do I use cookies to store session state on the client?

1031