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 would you reatach detached objects to a session when the same object has already been loaded into the session?

1202


What is a policy?

2302


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

1232


Write a program to show synchronization?

1144


What is table mutation and how do you avoid it?

2461


What is scalable, portability in the view of J2EE?

2523


What is glasgow?

1051


What is a modular application? What does module-relative mean?

1057


What is Remote Server?

2194


Are we allowed to change the transaction isolation property in middle of a transaction?

1028


What is bean? Where can it be used?

1161


Can constructors be synchronized in java?

1119


How to pass parameters in RMI?

2258


What is abstract schema?

1020


What is local interface. How values will be passed?

1020