Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

what number should I set for new byte[1024];

800332Jul 22 2010 — edited Jul 22 2010
Hello guys,

Anyone could please advice on the proper number to set for byte like below:

byte[] buf = new byte[1024];

I am just wondering why not 2048 or 4096.

Thanks in advance!

regards,
Mark
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 19 2010
Added on Jul 22 2010
6 comments
2,148 views