Which statement is true?    A.  Memory is reclaimed by calling Runtime.gc(). 
   B.  Objects are not collected if they are accessible from live threads. 
   C.  Objects that have finalize() methods are never garbage collected. 
   D.  Objects that have finalize() methods always have their finalize() methods called before 
       the program ends. 
   E.  An OutOfMemory error is only thrown if a single block of memory cannot be found 
       that is large enough for a particular requirement. Answer: B E为什么不对?

解决方案 »

  1.   

    E.An OutOfMemory error is only thrown if a single block of memory cannot be found that is large enough for a particular requirement. 
    (只有当找不到一片足够大的内存来满足一个特定的需求的时候,才会抛出OutOfMemory错误)这个说法是错误的,因为如果有多片内存,加起来足够大,可以满足那个需求,就不会抛出OutOfMemory错误