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

How database connectivity in XML is achieved?

2284


Explain the advantages and disadvantages of detached objects.

1076


What is ripple effect?

1125


Why are my checkboxes not being set from on to off?

1179


Is the ternary operator written x : y ? Z or x ? Y : z ?

1161


Why do I get a duplicate name error when loading a jar file?

1194


Do you think that java should have had pointers?

1125


What is the difference between the string and stringbuffer classes?

1158


What are the steps to write p-to-p model application?

2531


How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!

3049


Explain about local interfaces.

1117


What is the RMI and Socket?

1097


How to pass parameters in RMI?

2310


What are the different methods of identifying an object?

1127


Write a singleton program?

1104