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 is class methods defined in ruby?

1 Answers  


mention what is the difference between a single quote and double quote?

1 Answers  


What are the key features of ruby?

1 Answers  


Tell me what is the difference between calling super and calling super()?

1 Answers  


How ruby looks up a method to invoke?

1 Answers  


What is the difference between ruby 1.9 and ruby 2.0?

1 Answers  


What is Ruby programming language?

1 Answers  


Explain about portability?

1 Answers  


How is an iterator handled in ruby?

1 Answers  


Name some operators used in ruby.

1 Answers  


Tell me what is the role of sub-directory app/controllers and app/helpers?

1 Answers  


Define ruby methods.

1 Answers  


Categories