Which of the following describes why garbage collection in Spark is important?
Which of the following describes why garbage collection in Spark is important?
Garbage collection in Spark is important because Spark jobs will fail or run slowly if memory is not available for new objects to be created. Garbage collection helps by releasing memory occupied by objects that are no longer in use, thus freeing up space for new objects and ensuring efficient memory management. This process is crucial for maintaining the performance and stability of Spark jobs.
C is correct. Garbage in JVM is about releasing memory of objects that are no longer used so that new objects can be created