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

garbage collecton in java means, if a particular object in
a program is not being refered since long time then it will
be automatically deleted with the help of garbage collector
so that some amount of memory is saved.we can explicitily
call it by adding a method system.gc()in the program.so in
this case there is no need to use'destructor'to destroy the
objects.

Is This Answer Correct ?    70 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe what a thread-local variable is in java?

968


when should you use stringbuilder class in a program?

933


What is indexof?

925


What is the mapping mechanism used by java to identify IDL language?

965


What two classes are used to read data only?

1044


What is size () in java?

1048


What is difference between ++ I and I ++ in java?

919


What is the default access specifier for variables and methods of a class?

1148


What does compareto () do in java?

953


Can we override the static methods?

989


What is Java Reflection API? Why it’s so important to have?

1087


Explain Basics of OOP Language in java

994


What are adapter classes?

997


How do I get a substring?

935


What is object of class in java?

1078