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

Difference between String & StringBuffer

Answer Posted / ramesh raju

String s1="prabas";
String s2="raju";
String s3=s1.concat(s1);//s1=s2.concat("xyz") its not work
We didn't chang the content of s1,s2 strings
that's y String is Immutable

where as StringBuffer is mutable we can easly modified the
content

Is This Answer Correct ?    26 Yes 43 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name few java.lang classes introduced with java 8 ?

996


What is meant by overloading?

1076


How do you write a scanner class in java?

1028


give an example for encapsulation?

1057


Are variables stored in ram?

1019


What is static data type in java?

1041


Why is string class considered immutable?

1063


Is java a pure object oriented language?

974


Can I learn java without any programming experience?

1048


What is primitive data type in java?

993


Which is best ide for java?

1054


How does a for loop work?

999


What type of value does sizeof return?

1020


Which is illegal identifier in java?

1097


What is enhanced loop in java?

1005