• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why was the String class made Immutable?  RSS feed

 
Pinki Roy
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I want to know why any class is made Immutable?
What are the points considered before making a class Immutable?

Also why is the String class made Immutble?


Regards,

Pinki
 
Stephan van Hulst
Saloon Keeper
Posts: 7817
142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please SearchFirst. This question has been asked and answered numerous times.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!