--- Ole Arndt <[EMAIL PROTECTED]> wrote: > > But btw, why do you use Stringbuffer#append for String constants? > Just concat them with `+' and the compiler will make one long string > from the parts. This will happen at compile time. > With your method the compiler will emit seperate string constants > and then build the long strings at instanciation time, or, in case of > static constants, at class-loading time.
I was not aware of this. Generally, it's preached that StringBuffer should be used to *increase* efficiency since Strings are immutable. I did not realize any compile time optimizations were being done. Thanks for pointing it out. -- Le ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca