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
Can we sent objects using Sockets?
How will you pass parameters in RMI? Why do you serialize?
What is the immediate superclass of the applet class?
What is jboss?
What do you know about seam?
What is the relationship between an event-listener interface and an event-adapter class?
Java is fully object oriented languages or not?
Is jvm a overhead?
Describe activation process?
What is the difference between ear, jar and war file?
What is the relationship between the canvas class and the graphics class?
What is in-memory replication?
How would you detect a keypress in a jcombobox?
What modifiers may be used with an inner class that is a member of an outer class?
What if the static modifier is removed from the signature of the main method?