StringBuilder - I

10 August 2008

Java 5 introduces StringBuilder which implements Serializable and CharSequence interfaces. It represents a mutable sequence of characters.

StringBuilder is an API compatible with StringBuffer, but with no guarantee of synchronization. Following are the available constructors:

StringBuilder() 
StringBuilder(CharSequence seq) 
StringBuilder(int capacity) 
StringBuilder(String str)

This can be used in place of StringBuffer where the string buffer was being used by a single thread. Where possible, it is recommended that this class be used in preference to StringBuffer as it will be faster under most implementations.

Continued…

del.icio.us:StringBuilder - I  digg:StringBuilder - I  spurl:StringBuilder - I  wists:StringBuilder - I  simpy:StringBuilder - I  newsvine:StringBuilder - I  blinklist:StringBuilder - I  furl:StringBuilder - I  reddit:StringBuilder - I  fark:StringBuilder - I  blogmarks:StringBuilder - I  Y!:StringBuilder - I  smarking:StringBuilder - I  magnolia:StringBuilder - I  segnalo:StringBuilder - I  gifttagging:StringBuilder - I

Top Of Page | Trackback

If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.

It will look like this: StringBuilder - I

Leave a Reply