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

Does garbage collection guarantee that a program will not
run out of memory?

Answer Posted / ranganathkini

Garbage Collection of Java is an automatic mechanism that
safeguards against memory leaks and handles memory
allocation and de-allocation.

The GC makes all possible attempts to free memory and make
it available for fresh allocations. But at certain times it
cannot. At those times, it throws an OutOfMemoryError.

So to conclude, GC handles most of the memory management and
makes all possible attempts to make memory availabe for the
application but it does not gurantee that it will be able to
provide it.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we change the scope of the overridden method in the subclass?

1390


Can we declare array without size in java?

1041


How will you reverse a link list without using recursion?

1039


What are serialization and deserialization?

1268


How you can force the garbage collection?

987


How to add menushortcut to menu item?

1004


Can we override private method in java?

1090


Which method returns the length of a string?

1041


Which class should you use to obtain design information about an object in java programming?

1080


Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.

1324


What are the types of methodology?

1106


What’s the difference between applets and standalone program?

1051


what do you mean by classloader?

1093


What are internal and external variables?

959


Is list thread safe in java?

925