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 the difference between protected and default access.

999


What are advantages of exception handling in java?

1026


Does a function need a return?

968


Which class is the superclass for all the classes?

1021


What is jit compiler in java?

1108


Is a class subclass of itself?

1088


What’s the difference between constructors and other methods?

1000


Does chrome use java?

970


Write a java program to generate fibonacci series ?

1071


How many bits is a char?

996


What is unicode with example?

1215


What is the argument in java?

922


What comes to mind when someone mentions a shallow copy in java?

1110


How do you identify independent and dependent variables?

1008


What is difference between overloading and overriding in java?

1027