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.
d) The object is marked as garbage and its associated memory is freed when the garbage collector runs.
Computer Science & Information Technology
You might also like to view...
Recorded macros can be viewed in the ________
Fill in the blank(s) with correct word
Computer Science & Information Technology
A probability distribution takes on the shape of a bell and is often referred to as the ________
Fill in the blank(s) with correct word
Computer Science & Information Technology