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 / anjum rehbar khan

Yes we can send arequest to garbage collection by writing a
simple line of code:

System.gc();

OR

Runtime.gc();

But it is simply a request not a order to JVM
because Garbage collection is JVM dependent

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are methods in java?

990


What are the wrapped, classes?

1051


What is collection class in java? List down its methods and interfaces.

963


Can a class be declared as protected?

1011


What is default size of arraylist in java?

1151


Does sprintf allocate memory?

1105


What is the difference between comparison done by equals method and == operator?

1021


What is the public field modifier?

1025


What's the purpose of static methods and static variables?

1096


Can you explain the meaning of aggregation and composition

1008


What is a stringbuilder?

911


What is string manipulation?

1002


When the constructor of a class is invoked?

1029


When will we prefer to use set and list in java and why?

961


Is an array a vector?

1038