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

Write a servlet to upload file on server.

1102


What is a server side include (ssi)

1152


When servlet object is created?

1153


What is the GenericServlet class?

1229


What are different methods of session management in servlets?

1275


How httpservlet is different from the genericservlet?

1124


Explain is servlet mapping?

1008


What are all the protocols supported by httpservlet?

1275


How can the session in servlet can be destroyed?

1177


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?

1249


What is meant by servlet? What are the parameters of the service method?

1031


What is Request Dispatcher?

1430


What do you mean by scope object and what are its types?

1068


What are the supporting protocol by HttpServlet ?

1191


Why servlet is faster than jsp?

1065