aspose file tools*
The moose likes Beginning Java and the fly likes String and wrapper classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "String and wrapper classes" Watch "String and wrapper classes" New topic
Author

String and wrapper classes

Raj chiru
Ranch Hand

Joined: Aug 12, 2008
Posts: 141
HI........
why String class and wrapper classes are immutable? and what's the reason?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39791
    
  28
Somebody else asked a similar question today: here.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39791
    
  28
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

Joined: Apr 12, 2009
Posts: 449

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.


http://muhammadkhojaye.blogspot.com/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: String and wrapper classes