• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why was the String class made Immutable?

 
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
Bartender
Pie
Posts: 5590
55
  • 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