This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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