String is immutable.it is true
String can be change to mutable How?
Answer Posted / sharief
Yes,String is immutable.The simple meaning of immutable is
unmodifiable or unchangeable.once String object has been
created,its value can not be changed.
The Reason is java uses concept of String literal.Suppose
there are 5 reference variables,all referring to an object
called "Ronaldo".If one reference variable changes the value
of the object,it will be affected to all the reference
variables.That is why String objects are immutable in java.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What’s jboss cache in short?
Name the class that is used to bind the server object with RMI Registry?
what is Activation Instantinator?
Will the general public have access to the infobus apis?
Do you think that java should have had pointers?
How is a java object message delivered to a non-java client?
Why does the tag url-encode javascript and mailto links?
How are the elements of a borderlayout organized?
What modifiers may be used with an inner class that is a member of an outer class?
Describe activation process?
What restrictions are placed on the values of each case of a switch statement?
What value does readline() return when it has reached the end of a file?
How substring() method of string class create memory leaks?
Is the infobus client side only?
What is message driven beam?