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?



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

Answer / 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

More Core Java Interview Questions

what is a thread?

13 Answers   IBM, SunGard,


What is t type java?

0 Answers  


How many decimal digits is 64 bit?

0 Answers  


How do you remove duplicates from an array in java?

0 Answers  


Can we declare main () method as non static?

0 Answers  


What is application tier?

0 Answers  


Hi Friends, can u give me Real Time example for interface and abstract class.(With Banking Example)

4 Answers  


Why java is made?

0 Answers  


Name the package that always imported by default?

4 Answers  


Can we have a try block without catch block?

0 Answers  


Can you declare the main method as final?

0 Answers  


What technique can be employed to compare two strings?

0 Answers  


Categories