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...


Can you please explain what is the difference between string and symbol?



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

Post New Answer

More Ruby Interview Questions

Can you call a private method outside a ruby class using its object?

1 Answers  


Explain about Class variable and global variable?

1 Answers  


Ruby support single inheritance/multiple inheritance or both?

1 Answers  


what is the purpose of the rakefile available in the demo directory in ruby?

1 Answers  


How do you handle exceptions in ruby code?

1 Answers  


Tell me how you define instance variable, global variable and class variable in ruby?

1 Answers  


Are numeric objects mutable in ruby?

1 Answers  


Explain some differences between ruby and python.

1 Answers  


Mention what is the command to create a migration?

1 Answers  


How does a symbol differ from a string?

1 Answers  


What is request.xhr?

1 Answers  


What is the difference between #== and #eql??

1 Answers  


Categories