• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

String and wrapper classes

 
Raj chiru
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI........
why String class and wrapper classes are immutable? and what's the reason?
 
Campbell Ritchie
Sheriff
Pie
Posts: 50196
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Somebody else asked a similar question today: here.
 
Campbell Ritchie
Sheriff
Pie
Posts: 50196
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The post I told you about earlier isn't as good as I thought. Sorry.

I looked up on Google and found something in Wikipedia and on IBM's website. I think you will find all you require in those links. The IBM link is better.
 
Muhammad Khojaye
Ranch Hand
Posts: 449
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
raj chiru wrote:HI........
why String class and wrapper classes are immutable? and what's the reason?

The discussion why String is Immutable found here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic