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 / r.jainrocks@gmail.com

When concatenation operator "+"
used with string

it always creates a new String object,
in String pool area.

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What purpose do the keywords final, finally, and finalize fulfill?

1146


What makes a function well defined?

1031


How do you make an arraylist empty in java?

983


What is a stringbuilder?

975


What is linked hashset and its features?

1104


What are the advantages of encapsulation in java?

1049


Which class should you use to obtain design information about an object in java programming?

1130


Can we call the constructor of a class more than once for an object?

1137


How is tree Mirroring implemented?

1120


What is ctrl m character?

1107


What are methods and how are they defined?

1272


Can we convert list to set in java?

1048


In a container there are 5 components. I want to display all the component names, how will you do that?

2245


What are the limitations of procedural programming approach?

1109


define the terminology association.

1149