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 / nilesh bhil

Garbage collector is automatically called by JVM.
But can make the request by calling gc() method on System class as follows.
System.gc();
Note that we are making only request Garbage Collector may
called or may not called.
Garbage Collector is automatically called at two conditions.
1)When CPU is ideal.
2)When huge amount of memory is required.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why use a datasource when you can directly specify a connection details? (in a J2EE application)

4275


What is chat area? Explain.

1021


How to pass parameters in RMI?

2264


Explain how will the struts know which action class to call when you submit a form?

961


How messaging services are done, before release of JMS?

2144


What are the different methods of identifying an object?

1078


Describe responsibilities of Activator?

2275


What is the purpose of the notify() method?

1074


whats is statement and procedure

2212


What is TL and its use?

2483


What must a class do to implement an interface?

1199


When is the best time to validate input?

1105


To identify IDL language what mapping mechanism is used?

3944


what are memory considerations of jsp compares to other web components?

6538


How will you pass parameters in RMI? Why do you serialize?

1242