Advanced
Ruby
Q83 / 100
How does Ruby's Garbage Collector (GC) generally manage memory, particularly with the "generational" GC introduced in later MRI versions?
Correct! Well done.
Incorrect.
The correct answer is B) MRI uses a generational, incremental garbage collector that treats newly created ("young") objects differently from long-lived ("old") objects, scanning young objects more frequently to improve performance
B
Correct Answer
MRI uses a generational, incremental garbage collector that treats newly created ("young") objects differently from long-lived ("old") objects, scanning young objects more frequently to improve performance
Explanation
Modern MRI (Ruby) implements a generational GC that separates objects into young and old generations, focusing collection efforts on the young generation (which is collected more often) for efficiency.
Progress
83/100