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

Why is string immutable in java?

1058


How can I avoid validating a form before data is entered?

966


Why do I get a duplicate name error when loading a jar file?

1081


Why do threads block on i/o?

1184


How will you pass parameters in RMI? Why do you serialize?

1172


How substring() method of string class create memory leaks?

992


what are getters and setters in Java with examples?

1735


Why does the option tag render selected=selected instead of just selected?

1130


What is a modular application?

1014


What restrictions are placed on the location of a package statement within a source code file?

1059


what is an isolation level?

2713


what is a portable component?

1935


Explain phantom read?

2173


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

919


What is a tasks priority and how is it used in scheduling?

1008