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

Is main a function?

957


What are 4 pillers of object orinted programming?

943


Garbage collection in java?

947


Is java pass by value or pass by reference?

919


When is the finalize() called? What is the purpose of finalization?

1013


How is a variable stored in memory?

932


What is the use of a conditional inclusion statement in Java ?

1030


What is the difference between path and classpath variables?

964


How to change the priority of thread or how to set priority of thread?

979


What exactly is java?

884


Is hashmap thread safe?

931


Can two objects have same hashcode?

941


What are the basic interfaces of java collections framework?

1041


Define immutable object?

1001


What language is an assembler written in?

939