A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
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:
subject: reg: string and stringbuffer
byte [ ] to StringBuffer
How many Object is created?
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