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 string :: npos?

1178


What is difference between final and immutable?

1213


What is floor in java?

1080


What is prefix of a string?

1080


Give example to differentiate between call by value and call by reference.

1109


Differentiate between static and non-static methods in java.

1098


What is the use of arraylist class in java?

1127


Explain a situation where finally block will not be executed?

1091


what is bmg file and how to create that files?what will it contailn?

2396


whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net

2160


What is difference between java and java ee?

1074


How can we create a synchronized collection from given collection?

1126


What is ternary operator in java?

1122


What is meant by anonymous class?

1088


Why does abstract class have constructor?

1064