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
In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?
What restrictions are placed on the values of each case of a switch statement?
Why a component architecture for the java platform?
Which containers use a border layout as their default layout?
What is TL and its use?
Is the infobus client side only?
What is a class loader? What are the different class loaders used by jvm?
What is in-memory replication?
If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?
What is a modular application?
What are various types of class loaders used by jvm?
What is re-entrant. Is session beans reentrant. Is entity beans reentrant?
Why use POJO when I can use hashmap
Is infobus easy to use?
What is the difference between a menuitem and a checkboxmenuitem?