MCQOPTIONS
Saved Bookmarks
| 1. |
What is garbage collection in the context of Java? |
| A. | The operating system periodically deletes all of the Java files available on the system. |
| B. | When all references to an object are gone, then the memory used by the object is automatically reclaimed. |
| C. | Any java package imported in a program and not being used, is automatically deleted. |
| D. | The java virtual machine (JVM) checks the output of any java program and deleted anything that does not make sense at all. |
| Answer» C. Any java package imported in a program and not being used, is automatically deleted. | |