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 / janet

When an object is no longer referred to by any
variable,java automatically reclaims memory used by that
object.This is known as garbage collection.
System.gc() method may be used to call it explicitly.

Is This Answer Correct ?    182 Yes 34 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you give names of Container classes?

2263


Can you start a thread twice in Java?

1068


What happens if an exception is throws from an object's destructor?

994


Why constructor has no return type?

1054


Why destructor is not used in java?

934


Explain thread in java?

1107


Why do we use predicate in java?

1009


Explain notifyall() method of object class ?

1053


Can we override private methods?

984


Are there structures in java?

917


What is difference between null and void?

917


Detail discussions on JVM, memory management and garbage collector.

931


What is a stringbuilder?

859


What are register variables what are the advantages?

872


why an outer class cannot be declared as private?

4232