Chetu interview question

What is garbage collections in ruby?

Interview Answer

Anonymous

May 8, 2024

Running software uses computer memory for data structures and executable operations. How this memory is accessed and managed depends on the operating system and the programming language. Many modern programming languages manage memory for you, and Ruby is no different. Ruby manages memory usage using a garbage collector (also called gc).