A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
reg: string and stringbuffer
Joined: Dec 04, 2007
Jun 02, 2008 05:46:00
I just want to know if the "stringbuffer" is giving more flexibuility for data store then why in most case's we go for "string"
can any one please confirm this......
Joined: Oct 13, 2005
Jun 02, 2008 06:23:00
Don't use StringBuffer any more; use StringBuilder.
is used because its objects are immutable, so they can be reused without using too much memory, or threading problems.
StringBuilder is used because it gives a fast way of altering the contents of String-like text.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: reg: string and stringbuffer
How many Object is created?
byte [ ] to StringBuffer
StringBuffer and String returned from a method doubt
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014