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
Name the class that is used to bind the server object with RMI Registry?
Explain RMI Architecture?
What is the relation between the infobus and rmi?
Why is string immutable in java?
How is a java object message delivered to a non-java client?
Explain how will the struts know which action class to call when you submit a form?
Name three subclasses of the component class?
what is meant by JRMP?
What is the highest-level event class of the event-delegation model?
For which statements does it make sense to use a label?
When a thread blocks on i/o?
Explain what is orm?
What is the purpose of the wait(), notify(), and notifyall() methods?
Explain the different types of memory used by jvm?
What is message driven beam?