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 is garbage collection in Java, and how can it be used ?

Answer Posted / devarathnam c,kotagudibanda(po

Hi...
GarbageCollector: Whenever an object is no longer used in
the program at that time the garbage collector reclaims the
memory of an object.It is controlled by the JVM ,The JVM
runs periadically by using "mark" and "sweep"algorithms.
Instead of "destructor" in c++ , java supports garbage
collector.

Is This Answer Correct ?    84 Yes 21 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is numel matlab?

1261


What is struts in java?

996


Why enumeration is faster than iterator?

895


What is difference between this and super keyword?

944


Can there be an abstract method without an abstract class?

892


Which sorting algorithm is in place?

910


what do you mean by stream pipelining in java 8? Explain

982


What is a key in java?

939


What are jee technologies?

969


whatis Home interface and Remoteinterface? with example?

1950


How does varargs work in java?

1050


What is parsing a string?

1102


What is a protected method?

1086


Can we have multiple catch block for a try block?

947


Does java support multiple inheritance or not?

1032