• +91 9723535972
  • info@interviewmaterial.com

Ruby Interview Questions and Answers

Question - How Does A Symbol Differ From A String?

Answer -

symbols are immutable and reusable, retaining the same object_id.

Be prepared to discuss the benefits of using symbols vs. strings, the effect on memory usage, and in which situations you would use one over the other.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners