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
any more; use
is used because its objects are immutable, so they can be reused without using too much memory, or threading problems.
is used because it gives a fast way of altering the contents of String-like text.
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: reg: string and stringbuffer
byte [ ] to StringBuffer
StringBuffer and String returned from a method doubt
How many Object is created?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013