wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 37926
    
  22
Somebody else asked a similar question today: here.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37926
    
  22
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
 
Similar Threads
Enum
Few Interview questions I was not sure of
Immutable objects....
Math class immutable
Name the mutable and immutable Classes