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 use of list in java?

991


Explain the polymorphism principle?

1019


What is use of map in java?

1013


Explain about serializable interface in java?

1006


What is java virtual machine? Explain

1033


What is object-oriented paradigm?

1067


How do you add an arraylist to an array in java?

982


What is exception propagation?

1135


What is meant by anonymous class?

1025


What is getclass () getname () in java?

1150


Write a program to find the whether a number is an Armstrong number or not?

1034


What is a vector in java?

1032


What is string [] java?

952


What is the difference between arraylist and hashset in java?

1149


Have you ever used hashtable and dictionary?

1019