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 need of transient variables in Java ?

1072


What state does a thread enter when it terminates its processing in java programming?

1039


What is the size of arraylist in java?

1026


How to do encapsulation in java?

1051


What does += mean coding?

933


What is the list interface in java programming?

1115


Differentiate between postfix and prefix operators in java.

1127


How big is a boolean?

1031


What is the difference between an argument and a parameter?

991


What is the meaning of 3 dots in java?

1162


Explain the transient field modifier?

1045


Can java list contain duplicates?

1008


What is tcp ip in java?

1111


How does arraylist work in java?

1117


What does ide stand for?

943