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 do you mean by cgi in servlet?

1081


What is the disadvantage of cookies?

997


What do you mean by web applications? Explain web application directory arrangement?

966


Whether we can get deadlock situation in servlets?

1074


Explain mvc pattern.

1024


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

1078


Explain the custom jsp tags and the beans.

1069


What is the use of servlet context?

1045


What is the difference between encodeRedirectUrl and encodeURL?

1119


What's the servlet interface?

1084


Is servlet a server side scripting language?

1141


Tell the new features added in servletrequest interface i.e. Servlet 2.4

1173


Which method of the httpservletrequest object is used?

1096


Differentiate between get and post?

1163


What is a servlet-to-servlet communcation?

1181