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

Which category the java thread do fall in?

943


What are disadvantages of java?

958


What are streams in java 8?

944


What is class forname used for?

997


Will minecraft java be discontinued?

1114


What is jvm? How its run?

1018


What is arrays fill in java?

947


What is meant by class loader? How many types are there?

1176


Java.util.regex consists of which classes?

940


Which browsers work with java?

1020


What is JVM and is it platform independent?

987


Does substring create a new object?

945


What is a heavyweight component?

977


How do you check if a string contains only numeric digits?

1066


Are maps ordered java?

894