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

string is immutable? right every one knows that, my
question is it advantage or disadvantage making string
immutable?

Answer Posted / ashish balhara

The performance for String is poor as compared to String
Buffer, as internally (for eg. a simple operation like + on
String), it generates String Buffer, calls append operation
(eqvt. of + in String) & converts result back to String.
Hence extra bytecode is generated which could be done away
with.

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the symbol for average?

1030


What is the vector class in java programming?

1090


Write a program based on Java script program.

1144


Explain naming conventions for packages?

1035


What do bitwise operators do?

1015


Can arraylist hold different types java?

987


How do you square a number in java?

1057


What is thread safe singleton?

953


How java uses the string and stringbuffer classes?

1081


Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?

1161


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

1110


Are maps ordered java?

966


What is valid keyword in java?

1002


What is a dynamic array java?

953


What is the purpose of static keyword in java?

963