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 and String Buffer?

Answer Posted / sumati

String is immutable
String buffer is mutable

Ex String str = "abc";
str = "new String";
this will creat new memory location and stores "new String"

but in String buffer
StringBuffer strBuf = "abc";
strBuf = "new String"

it will overwrite in same memory location

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between a threads start() and run() methods? : Java thread

1006


What is the difference amongst jvm spec, jvm implementation, jvm runtime ?

952


What is the difference between java applets and applications?

1145


What is the numeric promotion?

1004


What is a lambda expression ? What's its use ?

1090


What is the concept of multithreading?

978


What is the difference between public, private, protected, and friend access?

1034


Are floats faster than doubles?

1043


Is space a char?

910


Explain when classnotfoundexception will be raised ?

1023


Can a private method of a superclass be declared within a subclass?

1021


Explain public static void main(string args[]).

1164


What are the difference between composition and inheritance in java?

1014


What is byte data type?

981


What is string builder in java?

996