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

What is the difference between state-based unit testing and interaction-based unit testing?

987


What is static import in java?

1033


What is the difference between final, finally and finalize()?

1241


What is the difference between serial and throughput garbage collector?

1157


Can an interface extend a class?

1058


What is the function of static in java?

1148


What is passed by reference and pass by value ?

1082


What is the maximum size of array in java?

1026


What are exceptions

1155


What is parsing in java?

1013


If system.exit (0); is written at the end of the try block, will the finally block still execute?

1159


What is lastindexof in java?

1171


When do we use synchronized blocks and advantages of using synchronized blocks?

1278


How to Sort Strings which are given in List and display in ascending order without using java api.

4514


Is namespace same as package in java?

1040