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...

why String class is immutable.

Answer Posted / vikrant

Once a string object is created no changes can be made to
it. If a string is modified in code a new object will be
created. That is why string is immutable

Is This Answer Correct ?    24 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can java list contain duplicates?

1014


What is runtime polymorphism or dynamic method dispatch?

1009


What are structs in java?

1062


What is jit and its use?

991


Is java a pure object oriented language?

965


What is a blocking method in Java?

1243


What methodology can be employed to locate substrings inside a string?

959


What is canonical name in java?

1149


What is command line argument in java?

1151


Is singleton a bad practice?

1047


Compare java and python.

989


What does sprintf return?

1061


Why singleton pattern is better than creating singleton class with static instance?

1000


Explain jvm, jre, and jdk?

1017


What is a "pure virtual" member function?

1101