Multiple Choice
Which of the following best describes what happens when an object no longer has any references pointing to it?
A) The object is overwritten the next time the new operator is called.
B) The object is overwritten the next time the new operator is called using the same class.
C) The object is immediately deleted from memory.
D) The object is marked as garbage and its associated memory is freed when the garbage collector runs.
E) The object stays in memory for the remainder of the programs execution.
Correct Answer:

Verified
Correct Answer:
Verified
Q19: Explain what it means for a String
Q20: A variable that is declared as a
Q21: Write a single statement that creates a
Q22: Suppose a Random object has been created
Q23: Which of the following represents the proper
Q25: Multiple reference variables can refer to the
Q26: Suppose we have a String object referenced
Q27: Consider the following snippet of code: Random
Q28: When there are no references to an
Q29: _ is the automatic conversion between a