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 a nested class?

1055


What is the parse method in java?

1049


What is meant by data hiding in java?

1080


what methods would you overwrite in java.lang.object class?

952


How to call one constructor from the other constructor ?

984


Why is singleton instance static?

945


What is core java used for?

1050


What is a list in java?

899


What are methods?

963


How to perform quicksort in java?

1032


Can set contain duplicates?

955


Explain the pointers in Java?

991


Describe the Big-O Notation.

996


Why parameters should be passed by reference?

911


What is the current version of java?

975