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 method type?

977


What is a void method?

908


what is singleton class in java?

1025


What does compareto () do in java?

983


Why is java not 100% pure oops?

1140


Why are parameters used in functions?

979


What is time complexity algorithm?

1028


Explain the difference between arraylist and linkedlist in java?

969


What is the purpose of encapsulation?

995


When do we need to use internal iteration? When do we need to use external iteration?

1103


Is cout buffered?

1157


How to use Media tracker Class.

1112


What is default locale java?

1089


What is instance example?

935


What is static in java?

1068