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


How does a symbol differ from a string?



How does a symbol differ from a string?..

Answer / 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

More Ruby Interview Questions

Write the command to get installed Ruby version in your system?

1 Answers  


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

1 Answers  


What is the difference between extend and include?

1 Answers  


What function converts all html special symbols to html entities in ruby?

1 Answers  


Mention what is the command to create a migration?

1 Answers  


What must you do first before you can invoke an unboundmethod object?

1 Answers  


difference between activesupport's “hashwithindifferentaccess” and ruby's “hash”?

1 Answers  


Explain some differences between ruby and python.

1 Answers  


what is class libraries in Ruby?

1 Answers  


What is the difference between calling super and calling super()?

1 Answers  


Tell me what is the difference between active support's “hashwithindifferent” and ruby's “hash” ?

1 Answers  


what is the Notation used for denoting class variables in Ruby?

1 Answers  


Categories