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


Explain how Symbol is different from variables?



Explain how Symbol is different from variables?..

Answer / Ranveer Kumar Singh

In Ruby, Symbols are immutable objects with unique identities, while variables are mutable references to objects. Symbols can be used as keys in hashes and method names, whereas variables are used for storing values.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

How would you implement hash in ruby internally?

1 Answers  


Mention what is the difference between a gem and a plugin in ruby?

1 Answers  


How an exception is handled in Ruby?

1 Answers  


Why Ruby is known as a language of flexibility?

1 Answers  


In Ruby, it explains about the defined operator?

1 Answers  


Tell us how would you implement hash in ruby internally?

1 Answers  


Tell us what is the difference between dynamic and static scaffolding?

1 Answers  


Explain the concepts and capabilities of garbage collection feature of Ruby?

1 Answers  


What are the different environment variables present in the ruby?

1 Answers  


Explain when self.up and self.down method is used?

1 Answers  


How symbol is different from variables?

1 Answers  


What are the data types in ruby?

1 Answers  


Categories