Oracle Community Directory
Oracle Community FAQ
My Oracle Support Community (MOSC)
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
OTN Speaker Bureau
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
: Feb 22, 2007 7:53 AM by
Feb 22, 2007 7:51 AM
We can pass the buffer size to StringBuffer constructer.
StringBuffer sb = new StringBuffer(30);
How should we decide on the optimal number of bytes for the buffer.
For example wether we are going to pass 30, 100, 150 etc to constructer of StringBuffer.
This content has been marked as final.
Show 1 reply
Re: StringBuffer constructer
Feb 22, 2007 7:53 AM
in response to
How should we decide on the optimal number of bytes
for the buffer.
If you know the number of characters you'll need in the end, pass that. Otherwise, frankly, don't bother.