Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Name the class that is used to bind the server object with RMI Registry?

2220


Explain RMI Architecture?

1153


What is the relation between the infobus and rmi?

1064


Why is string immutable in java?

1144


How is a java object message delivered to a non-java client?

1101


Explain how will the struts know which action class to call when you submit a form?

1013


Name three subclasses of the component class?

1161


what is meant by JRMP?

2432


What is the highest-level event class of the event-delegation model?

1163


For which statements does it make sense to use a label?

1134


When a thread blocks on i/o?

1170


Explain what is orm?

1155


What is the purpose of the wait(), notify(), and notifyall() methods?

1082


Explain the different types of memory used by jvm?

1197


What is message driven beam?

1120