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 |
Tell us what is the difference between dynamic and static scaffolding?
what is the difference between a gem and a plugin in Ruby?
Explain the three levels of access control for ruby methods?
How would you freeze an object in ruby?
Explain Ruby module?
what is the role of sub-directory app/controllers and app/helpers?
Explain ruby strings.
Explain class libraries in ruby.
Explain me what is the difference between symbol and string?
How would you create getter and setter methods in ruby?
Can method names be capitalized?
How can you removed from array in ruby?