The Source for Java Technology Collaboration


Home | Help | Changes | Index | Search | Go

StringBuffer

A StringBuffer is a Java class used for in-place manipulation of Strings.

From the 1.4.2 JavaDoc:

"A string buffer implements a mutable sequence of characters. A string buffer is like a String, but can be modified. At any point in time it contains some particular sequence of characters, but the length and content of the sequence can be changed through certain method calls."

J2SE 5.0 offers an alternative to StringBuffer: java.lang.StringBuilder

See AlwaysUseStringBufferMisconception for a discussion on when to use StringBuffers.



Discussion about StringBuffer

Topic StringBuffer . { Edit | Ref-By | Printable | Diffs r7 < r6 < r5 < r4 < r3 | More }
 XML java.net RSS

Revision r7 - 22 Oct 2004 - 14:45:18 - Main.arae
Parents: WebHome > Glossary