Java Programming :: Garbage Collections
-
Which statement is true?
-
Which statement is true?
-
Which statement is true?
-
Which statement is true?
A.
All objects that are eligible for garbage collection will be garbage collected by the garbage collector.
|
B.
Objects with at least one reference will never be garbage collected.
|
C.
Objects from a class with the finalize() method overridden will never be garbage collected.
|
D.
Objects instantiated within anonymous inner classes are placed in the garbage collectible heap.
|
A.
Memory is reclaimed by calling Runtime.gc().
|
B.
Objects are not collected if they are accessible from live threads.
|
C.
An OutOfMemory error is only thrown if a single block of memory cannot be found that is large enough for a particular requirement.
|
D.
Objects that have finalize() methods always have their finalize() methods called before the program ends.
|