How are String and Symbol different?

Symbol belongs to the immutable objects category whereas Strings are mutable objects. Both symbol and strings act similarly, but they differ in behavior. The difference lies mainly in the memory object_id and process tune when you use them together.

Suggest An Answer

No suggestions avaliable!

Related Interview Questions