Explain about garbage collection feature of ruby?
Answer / Sandeep Kumar Sharma
Ruby uses a mark-and-sweep garbage collector to manage memory. The collector automatically frees the memory occupied by objects that are no longer in use (i.e., garbage). This helps prevent memory leaks and ensures efficient memory management.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is rvm?
Difference between nil and false in ruby?
In how many ways items can be removed from array in Ruby?
Which ruby interpreter option enables debugging?
Explain about operators in Ruby?
mention what is the difference between a single quote and double quote?
What are freezing string in Ruby?
How to read a file in Ruby?
Tell me can you call a private method outside a ruby class using its object?
Tell me what is the difference between calling super() and super call?
Explain the role of thread pooling in relation to the thread lifecycle in ruby?
Explain Ruby if-else statement?