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

Explain while loop in ruby.

1 Answers  


Explain Ruby if-else statement?

1 Answers  


Explain the use of retry statement in ruby?

1 Answers  


Explain about the defined operator?

1 Answers  


Explain for loop in Ruby?

1 Answers  


What is concatenating string in Ruby?

1 Answers  


Explain ruby data types.

1 Answers  


What is a struct in ruby?

1 Answers  


Define ruby methods.

1 Answers  


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

1 Answers  


what is a class library in Ruby?

1 Answers  


Describe the environment variables present in Ruby?

1 Answers  


Categories