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

Can singleton class be cloned?

1001


what are the high-level thread states? : Java thread

946


Is string is a data type in java?

979


Difference between static synchronization vs. Instance synchronization?

1048


Give any two differences between C++ and java.

1080


Difference between nested and inner classes ?

1051


Can an interface extend a class?

922


What is multithreading and its advantages?

1016


What is the public field modifier?

959


How do you sort a set in java?

853


Write a program to calculate factorial in java?

952


Why we go for collections in java?

919


What is :: operator in java?

912


Can you sort a list in java?

917


Write a factorial program using recursion in java?

942