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 access modifiers can be used for variables?

1128


Is singleton class thread safe?

978


Explain thread life cycle in java?

1020


Is void a wrapper class?

932


What are desktop procedures?

1036


Tell some latest versions in JAVA related areas?

968


What is gui programming?

1014


How do you sort arraylist in descending order?

1002


Is null a string or object in java?

951


How to make a non daemon thread as daemon?

1047


Tell me about your ability to work under pressure

2179


Is a char always 1 byte?

974


What does java stand for?

1100


What is independent and dependent variables in research?

845


How to perform linear search in java?

924