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

Explain restrictions for using anonymous inner classes?

1035


Is assembly language a low level language?

868


Write a program to print count of empty strings in java 8?

934


What is the finalize method do?

1045


How to print an arraylist in java?

998


Can inner class be public in java?

966


what is the difference between the methods sleep() and wait()? : Java thread

905


What are the topics in advance java?

908


Which package is imported by default?

1031


Which language is java?

915


What comes to mind when someone mentions a shallow copy in java?

1060


what is optional in java 8?

1009


What is difference between module and function?

1078


What is thread safe in java?

934


What are checked exceptions?

963