1.

What is the main objective of garbage collection?

Answer»

The main objective of this process is to free up the memory space occupied by the unnecessary and UNREACHABLE OBJECTS during the Java program EXECUTION by deleting those unreachable objects.

  • This ensures that the memory RESOURCE is used efficiently, but it provides no guarantee that there would be sufficient memory for the program execution.


Discussion

No Comment Found