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


what is the difference between String and Symbol?



what is the difference between String and Symbol?..

Answer / Dherendra Jain

Strings in Ruby are objects that represent sequences of characters, while symbols are lightweight objects that represent unique identifiers. Strings can be concatenated with the + operator or interpolated within double quotes, while symbols use the : colon before their identifier.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

What are advantages of using ruby?

1 Answers  


What does ruby name refers to?

1 Answers  


Explain for loop in Ruby?

1 Answers  


Are ruby strings are mutable?

1 Answers  


Does hash use “ #==” or “#eql?” To compare hash keys?

1 Answers  


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

1 Answers  


Who is the developer of Ruby?

1 Answers  


What things we can define in the model?

1 Answers  


In Ruby code, often it is observed that coder uses a short hand form of using an expression like array.map(&:method_name) instead of array.map { |element| element.method_name }. How this trick actually works?

1 Answers  


Explain about variables?

1 Answers  


How would you freeze an object in ruby? Can you provide a simple example?

1 Answers  


What is yield statement in ruby.

1 Answers  


Categories