title: Allocating zero capacity ByteBuffer
body: <p>Can anybody please tell me what are those possible purposes of allocating zero-length buffer?</p>
  
  
  
  <pre><code>ByteBuffer.allocate(0); // no IllegalArgumentException
  </code></pre>
  
  <p>Why the one who designed the API did this?</p>
  
  <p><strong>Thanks for comments and answers.</strong></p>
  
  <p>I hope there will be an update like this. :)</p>
  
  <pre class="lang-java prettyprint-override"><code>public abstract class ByteBuffer
      extends Buffer
      implements Comparable&lt;ByteBuffer&gt; {
  
      public static final ByteBuffer VOID = allocate(0);
  }
  </code></pre>