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 a line separator in java?

939


What does the string method compareto () do?

1015


What are memory tables?

1061


State some situations where exceptions may arise in java?

1005


What is wrapper class html?

895


What are three ways in which a thread can enter the waiting state in java programming?

1111


Can we sort array in java?

899


What are static blocks in java ?

1049


How to create an immutable class?

1048


How to call one constructor from the other constructor ?

996


What is r in java?

1009


What is difference between float and double?

920


When can we say that threads are not lightweight process in java?

1092


What is the purpose of sizeof operator?

988


Why is string builder not thread safe?

1023