This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • 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
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Somebody else asked a similar question today: here.
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • 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