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...

How is Garbage collection done in Java?

Answer Posted / boomiraj

Programmer can not cause the garbage collector.
We can call the garbage collection using System.gc();
And we can set the variable value equal to null, it assign that variable garbage rest the that use.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is file in java?

1021


What is bom encoding?

992


Can we have a method name same as class name in java?

1046


What data type is true or false?

1034


What is java beans?

982


Is string an object?

1106


How big is a pointer?

1020


What is difference between == equals () and compareto () method?

1037


Explain the access modifiers for a class, method and variables?

1134


What is the difference between scrollbar and scrollpane?

1077


how is final different from finally and finalize in java?

1046


Do I need to import java.lang package any time? Why?

1374


What is the static field modifier?

1118


What does arrays sort do in java?

1010


What is an object in java?

1023