Can you please explain what is the difference between string and symbol?
Answer / Asha Rani
In Ruby, a String represents a sequence of characters, while Symbol represents an immutable identifier. Strings are used for storing textual data, whereas symbols are often used as keys in hashes.
| Is This Answer Correct ? | 0 Yes | 0 No |
Are numeric objects mutable in ruby?
Tell us what is class libraries in ruby?
Explain about variables?
What are advantages of using ruby?
How ruby looks up a method to invoke?
What is a struct in ruby?
How do you handle exceptions in ruby code?
Please explain each of the following operators and how and when they should be used: ==, ===, eql?, Equal?
Please explain what are some advantages of using ruby?
Explain the garbage collection feature of ruby?
Do you know about dig, float and max?
What is ruby software and where and when it is usefull.