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 to send a request to garbage collector?

Answer Posted / uv

As far as I know,it is not required to call the garbage
collector.
It automatically and periodically removes the unused
objects by an algorithm known as "Mark and Sweep".

However, if we intentionally want to call it then the above
suggestions are perfect.
Anyone who feels that it is incorrect, please feel free to
correct me.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between hashmap and hashtable? What is an interface?

1103


Is char a data type in java?

936


What is primitive data type in java?

925


In case of inheritance what is the execution order of constructor and destructor?

1079


How do you escape json?

951


How do you remove all elements from an arraylist in java?

982


Why java is platform independent? Explain.

969


What means public static?

1013


Explain numeric promotion?

1046


What is a programming object?

1040


What is the purpose of using java.lang.class class?

979


Explain exception chaining in java?

1115


What does microservices mean?

913


What is the purpose of the finally clause of a try-catch-finally statement in java programming?

910


Does set allows null in java?

922