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...

Why we can not force Garbage Collection?

Answer Posted / pradeep panwar

Hi All....
yea thats true that we can't force for Garbage Collection.
We can send a request by system.gc(); at any time but its
not sure that garbage collection takes place at that time.
It depends on memory. So we cant forcr fot GC either
sending the explicit request.

can catch me on +91-9899954354

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use threads in java?

1051


What is high level language in computer?

969


What is void class in java?

919


What is the difference between a method and a function in alice?

1093


How can you traverse a linked list in java?

1073


If an object reference is set to null, will the garbage collector immediately free the memory held by that object?

1085


What is structure of java heap? What is perm gen space in heap?

1052


What is a generic code?

980


Why call by value prevents parameter value change?

1012


Is string a class in java?

927


How objects of a class are created if no constructor is defined in the class?

1020


What are the problems faced by java programmers who don't use layout managers?

907


What is the latest version of java?

1054


Define an abstract class with reference to java.

947


Name the components that are termed to be Heavy-weight component but available in Light-weight components?

2443