Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is the difference between String and Symbol?



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

Post New Answer

More Ruby Interview Questions

Explain the garbage collection feature of ruby?

1 Answers  


Explain the difference between a single quote and double quote?

1 Answers  


Explain about the command line options?

1 Answers  


As you know ruby provides four types of variables. List them and provide a brief explanation for each?

1 Answers  


What is concatenating string in Ruby?

1 Answers  


What are the different uses of ruby modules?

1 Answers  


what is the difference between put and putc statement?

1 Answers  


Does hash use “ #==” or “#eql?” To compare hash keys?

1 Answers  


How does ruby deal with extremely large numbers?

1 Answers  


Explain ampersand parameter (&block) in Ruby?

1 Answers  


Explain ruby class.

1 Answers  


Is ruby a strongly typed or a weakly typed language?

1 Answers  


Categories