aspose file tools*
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is difference in string and string buffer
 
Similar Threads
Diff Between String and String Buffer
string,string buffer,string builder
string and string buffer
String and StringBuffer
String & String Buffer