• +91 9723535972
  • info@interviewmaterial.com

Ruby Interview Questions and Answers

Question - What are freezing string in Ruby.

Answer -

In most programming languages strings are immutable. It means that an existing string can't be modified, only a new string can be created out of them.

In Ruby, by default strings are not immutable. To make them immutable, freeze method can be used.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners