ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
Does garbage collection guarantee that a program will not 
run out of memory?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Does garbage collection guarantee that a program will not run out of memory?
Answer
# 1
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
Ranganathkini
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
string is immutable? right every one knows that, my question is it advantage or disadvantage making string immutable? HCL4
How to declare unique ArrayList ? RMSI4
How does Vector implement synchronization? Ness-Technologies2
Difference between Choice and a List?  1
why we import both packages java.awt.*; and java.awt.event.*; as java.awt.*; can import all classes na. then what is the need of importing java.awt.event.*; ?  2
What is meant by throwing an Exception? Accenture4
what is difference between global methods and local methods?  1
what ide u r using and wat version, how wil u build the project etc ?  2
I have an HashMap object, which has with key and value pair. It has 10 keys and values in that object. Now the question is I want insert new key and value in middle or any where in that list but not at the end or at the top. Is it possible or not. If yes how can we achieve this one? Huawei1
why Runnable interface is preferable than extending the Thread class? Wipro5
what is difference between Action messages and Action errors? TCS1
what models are available for event handling?  1
Can we inherit the constructor in a Class?please give one example. iGate3
finalize() method?  4
What is an enumeration class?  2
what is the Arraylist limit (maximum) by default ? Fidelity6
What are Advatages of Overloading and Overridding. TCS3
when to use abstract class and when to use interface? IonIdea5
strings in java are objects.why?  2
how you will prevent inheritance is there any other way other than inheritance? Wipro4
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com