Answer Posted / Yati Bajpai
In Ruby, symbols are objects that represent immutable strings with a colon at the end (e.g., `:symbol`). Symbols have the same value as their corresponding strings but provide better performance when used as keys in hashes or for method names because they are cached internally.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers