what is the difference between String and Symbol?
Answer / Dherendra Jain
Strings in Ruby are objects that represent sequences of characters, while symbols are lightweight objects that represent unique identifiers. Strings can be concatenated with the + operator or interpolated within double quotes, while symbols use the : colon before their identifier.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain the garbage collection feature of ruby?
Explain the difference between a single quote and double quote?
Explain about the command line options?
As you know ruby provides four types of variables. List them and provide a brief explanation for each?
What is concatenating string in Ruby?
What are the different uses of ruby modules?
what is the difference between put and putc statement?
Does hash use “ #==” or “#eql?” To compare hash keys?
How does ruby deal with extremely large numbers?
Explain ampersand parameter (&block) in Ruby?
Explain ruby class.
Is ruby a strongly typed or a weakly typed language?