Ruby - Garbage collection feature of Ruby

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.
Ruby - Describe the environment variables present in Ruby
RUBYOPT, RUBYLIB, RUBYPATH, RUBYSHELL, RUBYLIB_PREFIX......
Ruby - Interpolation is a very important process in Ruby, comment
Interpolation is the process of inserting a string into a literal......
Ruby - What is the use of super in Ruby Rails?
Ruby uses the super keyword to call the superclass implementation of the current method.......
Post your comment