A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
Why was the String class made Immutable?
Joined: May 16, 2008
Mar 02, 2012 13:59:45
I want to know why any class is made Immutable?
What are the points considered before making a class Immutable?
Also why is the
class made Immutble?
Stephan van Hulst
Joined: Sep 20, 2010
Mar 02, 2012 14:15:29
. 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:
subject: Why was the String class made Immutable?
why immutable string object ?
Who r u Sting ?
Why String in Java is made immutable?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015