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

Explain scope or life time of local variables in java?

990


Where is core java used?

976


How do you identify independent and dependent variables?

954


Can an interface extend a class?

942


Can we increase array size dynamically in java?

907


What are three types of loops in java?

1074


Why is a singleton bad?

915


How infinite loop is declared?

979


What is a nested structure?

988


What is main difference between variable and constant?

986


What are keyboard events?

1108


What do you mean by scope of variable?

848


What is a function easy definition?

969


What is the purpose of tostring() method in java?

1097


What will be the initial value of an object reference which is defined as an instance variable?

1097