wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes what is difference in string and string buffer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "what is difference in string and string buffer" Watch "what is difference in string and string buffer" New topic
Author

what is difference in string and string buffer

ajay verma
Ranch Hand

Joined: Dec 10, 2007
Posts: 37
what is difference in string and string buffer?
ajay verma
Ranch Hand

Joined: Dec 10, 2007
Posts: 37
1.string is immutable where is string builder is mutable
2.In stringBuilder, automatically increase and decrease size of string object whenever add elements and delete elements .Where in string , it is fixed size .
3.StringBuilder can performe a insert(),Delete(),Reverse(),Sort() operations etc and we can create multiple instances .Where as String , It can't perfome .
4.StringBuilder takes enough memory for variable .Where as String can't perfome
Mark Newton
Ranch Hand

Joined: Jan 31, 2006
Posts: 129
What do you think?

DoYourOwnHomework
 
Consider Paul's rocket mass heater.
 
subject: what is difference in string and string buffer
 
Similar Threads
string and string buffer
string,string buffer,string builder
String and StringBuffer
String & String Buffer
Diff Between String and String Buffer