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 is a substitution variable?

1077


What is variable and its types?

1082


Write a java program to print fibonacci series?

1007


What is broken and continue statement?

1063


Is void a data type?

998


what are the methods in object?

1205


What is data movement?

1201


How will you reverse a singly-link list?

1052


Why is singleton not thread safe?

1108


What is predicate in java?

1103


What is the purpose of static methods and variables?

1082


What does the ‘static’ keyword mean? Is it possible to override private or static method in java?

1037


How do you check whether the list is empty or not in java?

1018


What is finalize()? Is finalize() similar to a destructor?

1005


How to create packages in java?

994