This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Why was the String class made Immutable? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Why was the String class made Immutable?" Watch "Why was the String class made Immutable?" New topic
Author

Why was the String class made Immutable?

Pinki Roy
Greenhorn

Joined: May 16, 2008
Posts: 22
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

Joined: Sep 20, 2010
Posts: 4087
    
  18

Please SearchFirst. This question has been asked and answered numerous times.


The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why was the String class made Immutable?
 
It's not a secret anymore!