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

What is a clone?

1062


Difference between new operator and class.forname().newinstance()?

1137


How database connectivity in XML is achieved?

2243


What are the different class loaders used by jvm?

1099


Is there a guarantee of uniqueness for entity beans?

1012


What class is the top of the awt event hierarchy?

1113


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

1152


What is ioc concept & explain it?

1087


In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?

2675


When is the best time to validate input?

1105


What modifiers may be used with an interface declaration?

1137


Difference between swing and awt?

1298


What event results from the clicking of a button?

1253


To what value is a variable of the string type automatically initialized?

1137


What do you need to set-up a cluster with jboss?

1077