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? right every one knows that, my
question is it advantage or disadvantage making string
immutable?

Answer Posted / payal gupta

It is an advantage that a String class is immutable because
almost all the standard classes use its methods, if they
were mutable, then the behaviour of other standard classes
and their methods would not have been consistent.

Is This Answer Correct ?    7 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the constructor?

1037


What does next mean in java?

956


How to make a read-only class in java?

1137


How to compare two strings in java program?

1040


what is aggregation in java?

988


How many bytes is a char in java?

1002


What is contract between hashcode and equal method?

1020


explain what is transient variable in java?

1104


what do you understand by synchronization? : Java thread

969


How an object is serialized in java?

971


What is the difference between exception and error in java?

999


Where are global variables stored?

934


Can a class have multiple constructors?

1010


What are the different types of sorting in java?

961


What is default constructors?

984