Explain the garbage collection feature of ruby?
Answer / Vasco Dwivedi
"Garbage collection is an automatic memory management technique employed by Ruby. It frees the programmer from the task of manually managing and deallocating memory allocated to objects. When an object becomes unreachable (i.e., no longer used or referenced), garbage collection automatically reclaims its memory."
| Is This Answer Correct ? | 0 Yes | 0 No |
How would you freeze an object in ruby?
Tell me how do you remove nil values in array using ruby?
What is the difference between extend and include?
Describe the environment variables present in Ruby?
Explain the difference between nil and false in ruby?
Describe class libraries in Ruby?
How do you handle exceptions in ruby code?
Explain about variables?
Tell me what is the difference between active support's “hashwithindifferent” and ruby's “hash” ?
what is the difference between put and putc statement?
How to check whether a directory exist or not in Ruby?
difference between activesupport's “hashwithindifferentaccess” and ruby's “hash”?