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
How database connectivity in XML is achieved?
Java is fully object oriented languages or not?
How will you pass parameters in RMI? Why do you serialize?
Can I run seam outside of jboss as?
Can I have an action without a form?
Why is string immutable in java?
Do we need to override service() method
Whats new with the stop(), suspend() and resume() methods in jdk 1.2?
What method is invoked to cause an object to begin executing as a separate thread?
If your ui seems to freeze periodically, what might be a likely reason?
Which characters may be used as the second character of an identifier, but not as the first character of an identifier?
What is the relationship between an event-listener interface and an event-adapter class?
What is RMI and what are the services in RMI?
how do you Handle Front End Application data against DB with example?
What is the difference between the session.get() method and the session.load() method?