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

Convert Binary tree to linked list.

1142


What is the purpose of a parameter?

1136


What do you mean by ternary operator in java?

1065


Do extraneous variables affect validity?

957


what invokes a threads run() method? : Java thread

1060


Can we declare register variable as global?

965


What is the synonym of framework?

1051


Can an interface have a constructor?

1026


How many times finalize method will be invoked? Who invokes finalize() method in java?

1071


explain autoboxing in java?

1047


What are the Main functions of Java?

1130


What are the different types of methodologies?

1063


How can the checkbox class be used to create a radio button?

1079


How are destructors defined in java?

1087


Difference between error and exception

6162