Explain the concepts and capabilities of garbage collection feature of Ruby.Garbage collection is the process of reclaiming the memory space. Ruby avoids memory leaks at a great extent. Ruby performs garbage collection automatically. The memory resource management for allocation and deallocation is not hard coded. Dynamic storage space allocation in the memory space is done there by avoiding scores of application crashes.Explain the concepts and capabilities of garbage collection feature of Ruby. - Ruby is an object oriented language and every object oriented language tends to allocate many objects during execution of the program. - Ruby deletes unallocated and unused objects automatically. - This feature can be controlled by applying proper syntax and program through ruby.
|