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 |
What are the three levels of method access control for classes and what do they signify? What do they imply about the method?
How to write multiline string in Ruby?
Tell me how you can create a controller for subject?
Describe class libraries in Ruby?
Explain for loop in Ruby?
How to check whether a directory exist or not in Ruby?
Explain Ruby hashes?
As you know ruby provides four types of variables. List them and provide a brief explanation for each?
What are the different environment variables present in the ruby?
Explain the difference in scope for these two variables: @@name and @name?
How can you removed from array in ruby?
What is the pattern matching operator in ruby?