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

When you say String is immutable, what do you mean by that?
Say I have String s = "Ness"
s= s+"Technologies";
What will happen? If the value gets appended, then what is
the meaning of immutable here?

Answer Posted / harmetkrishanan

every time a new String object gets created in this case.

Is This Answer Correct ?    24 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is regex used for?

944


What is unmodifiable collection in java?

864


Why java is a platform independent? Explain

1007


What does three dots mean in java?

1063


How will you add panel to a frame?

1054


What is a class reference?

1020


How dead lock situation occurs in java and how you can identify it?

943


Is a method a procedure?

988


Is singleton class immutable?

912


Is java util list serializable?

895


Why hashcode is used in java?

920


Which is the best approach for creating thread ?

1138


What are the properties of thread?

864


Is set thread safe java?

870


Can a static class have a constructor java?

934