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

Are numeric objects mutable in ruby?

1 Answers  


Tell us what is class libraries in ruby?

1 Answers  


Explain about variables?

1 Answers  


What are advantages of using ruby?

1 Answers  


How ruby looks up a method to invoke?

1 Answers  


What is a struct in ruby?

1 Answers  


How do you handle exceptions in ruby code?

1 Answers  


Please explain each of the following operators and how and when they should be used: ==, ===, eql?, Equal?

1 Answers  


Please explain what are some advantages of using ruby?

1 Answers  


Explain the garbage collection feature of ruby?

1 Answers  


Do you know about dig, float and max?

1 Answers  


What is ruby software and where and when it is usefull.

1 Answers  


Categories