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 does the option tag render selected=selected instead of just selected?

1159


Explain what is synchronization?

1074


Which container method is used to cause a container to be laid out and redisplayed?

1129


what are the advantages of JTA over JTS?

2187


What is the difference between system.out ,system.err and system.in?

1086


What is the difference between the string and stringbuffer classes?

1082


what is a portable component?

1986


What are the diff types of exception?

1041


What is the argument type of a programs main() method?

1108


What happens when a thread cannot acquire a lock on an object?

1021


What is a class loader?

1852


What are the different types of exception?

1021


wahts is mean by dynavalidatorform in struts/

2055


What are the sequence of steps to write pub or sub model kind of application?

2507


What is the highest-level event class of the event-delegation model?

1079